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.19.0 to 4.19.3

lib/rest/flexApi/v1/provisioningStatus.d.ts

8

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

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

persistentAction?: Array<string>;
/** For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. */
/** For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. */
shortenUrls?: boolean;

@@ -65,3 +65,3 @@ /** */

riskCheck?: MessageRiskCheck;
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service\\\'s Sender Pool) or you can provide a specific sender from your Sender Pool. */
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service\\\'s Sender Pool) or you can provide a specific sender from your Sender Pool. */
from?: string;

@@ -72,3 +72,3 @@ /** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service\\\'s Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. */

body?: string;
/** The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. */
/** The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. */
mediaUrl?: Array<string>;

@@ -247,3 +247,3 @@ /** For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio\\\'s response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). */

/**
* The sender\'s phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
* The sender\'s phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
*/

@@ -250,0 +250,0 @@ from: string;

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

/**
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
*/

@@ -136,0 +136,0 @@ types: any;

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

/**
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
*/

@@ -151,0 +151,0 @@ types: any;

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

/**
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
*/

@@ -153,0 +153,0 @@ types: any;

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

mediaSid?: string;
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
contentSid?: string;

@@ -254,3 +254,3 @@ /** A structurally valid JSON string that contains values to resolve Rich Content template variables. */

/**
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
*/

@@ -257,0 +257,0 @@ contentSid: string;

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

mediaSid?: string;
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
contentSid?: string;

@@ -260,3 +260,3 @@ /** A structurally valid JSON string that contains values to resolve Rich Content template variables. */

/**
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
*/

@@ -263,0 +263,0 @@ contentSid: string;

@@ -18,2 +18,3 @@ import FlexApiBase from "../FlexApiBase";

import { InteractionListInstance } from "./v1/interaction";
import { ProvisioningStatusListInstance } from "./v1/provisioningStatus";
import { WebChannelListInstance } from "./v1/webChannel";

@@ -57,2 +58,4 @@ export default class V1 extends Version {

protected _interaction?: InteractionListInstance;
/** provisioningStatus - { Twilio.FlexApi.V1.ProvisioningStatusListInstance } resource */
protected _provisioningStatus?: ProvisioningStatusListInstance;
/** webChannel - { Twilio.FlexApi.V1.WebChannelListInstance } resource */

@@ -90,4 +93,6 @@ protected _webChannel?: WebChannelListInstance;

get interaction(): InteractionListInstance;
/** Getter for provisioningStatus resource */
get provisioningStatus(): ProvisioningStatusListInstance;
/** Getter for webChannel resource */
get webChannel(): WebChannelListInstance;
}

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

const interaction_1 = require("./v1/interaction");
const provisioningStatus_1 = require("./v1/provisioningStatus");
const webChannel_1 = require("./v1/webChannel");

@@ -137,2 +138,8 @@ class V1 extends Version_1.default {

}
/** Getter for provisioningStatus resource */
get provisioningStatus() {
this._provisioningStatus =
this._provisioningStatus || (0, provisioningStatus_1.ProvisioningStatusListInstance)(this);
return this._provisioningStatus;
}
/** Getter for webChannel resource */

@@ -139,0 +146,0 @@ get webChannel() {

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

incident: string;
/**
* The URL of this resource.
*/
url: string;

@@ -127,0 +124,0 @@ private get _proxy();

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

autoTranscribe?: boolean;
/** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models. */
/** Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent. */
dataLogging?: boolean;

@@ -41,3 +41,3 @@ /** A human readable description of this resource, up to 64 characters. */

autoTranscribe?: boolean;
/** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models. */
/** Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent. */
dataLogging?: boolean;

@@ -191,3 +191,3 @@ /** A human readable description of this resource, up to 64 characters. */

/**
* Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
* Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
*/

@@ -194,0 +194,0 @@ dataLogging: boolean;

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

/**
* Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine its speech recognition models.
* Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
*/

@@ -208,0 +208,0 @@ dataLogging: boolean;

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

extract_results: any;
text_generation_results: any;
transcript_sid: string;

@@ -166,2 +167,6 @@ url: string;

/**
* Output of a text generation operator for example Conversation Sumamary.
*/
textGenerationResults: any;
/**
* A 34 character string that uniquely identifies this Transcript.

@@ -210,2 +215,3 @@ */

extractResults: any;
textGenerationResults: any;
transcriptSid: string;

@@ -212,0 +218,0 @@ url: string;

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

this.extractResults = payload.extract_results;
this.textGenerationResults = payload.text_generation_results;
this.transcriptSid = payload.transcript_sid;

@@ -124,2 +125,3 @@ this.url = payload.url;

extractResults: this.extractResults,
textGenerationResults: this.textGenerationResults,
transcriptSid: this.transcriptSid,

@@ -126,0 +128,0 @@ url: this.url,

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

dateUpdated: Date;
/**
* The absolute URL of the ChannelSender resource.
*/
url: string;

@@ -125,0 +128,0 @@ private get _proxy();

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

businessContactPhone?: string;
/** Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to \\\'Website fixed\\\'. */
editReason?: string;
}

@@ -152,2 +154,10 @@ /**

/**
* Remove a TollfreeVerificationInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed boolean
*/
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
/**
* Fetch a TollfreeVerificationInstance

@@ -191,2 +201,3 @@ *

constructor(_version: V1, sid: string);
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
fetch(callback?: (error: Error | null, item?: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;

@@ -239,2 +250,3 @@ update(params?: TollfreeVerificationContextUpdateOptions | ((error: Error | null, item?: TollfreeVerificationInstance) => any), callback?: (error: Error | null, item?: TollfreeVerificationInstance) => any): Promise<TollfreeVerificationInstance>;

edit_expiration: Date;
edit_allowed: boolean;
resource_links: any;

@@ -375,2 +387,6 @@ external_reference_id: string;

/**
* If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
*/
editAllowed: boolean;
/**
* The URLs of the documents associated with the Tollfree Verification resource.

@@ -385,2 +401,10 @@ */

/**
* Remove a TollfreeVerificationInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed boolean
*/
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
/**
* Fetch a TollfreeVerificationInstance

@@ -449,2 +473,3 @@ *

editExpiration: Date;
editAllowed: boolean;
resourceLinks: any;

@@ -451,0 +476,0 @@ externalReferenceId: string;

@@ -34,2 +34,11 @@ "use strict";

}
remove(callback) {
const instance = this;
let operationVersion = instance._version, operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
});
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
return operationPromise;
}
fetch(callback) {

@@ -95,2 +104,4 @@ const instance = this;

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

@@ -158,2 +169,3 @@ headers["Content-Type"] = "application/x-www-form-urlencoded";

this.editExpiration = deserialize.iso8601DateTime(payload.edit_expiration);
this.editAllowed = payload.edit_allowed;
this.resourceLinks = payload.resource_links;

@@ -170,2 +182,12 @@ this.externalReferenceId = payload.external_reference_id;

/**
* Remove a TollfreeVerificationInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed boolean
*/
remove(callback) {
return this._proxy.remove(callback);
}
/**
* Fetch a TollfreeVerificationInstance

@@ -223,2 +245,3 @@ *

editExpiration: this.editExpiration,
editAllowed: this.editAllowed,
resourceLinks: this.resourceLinks,

@@ -225,0 +248,0 @@ externalReferenceId: this.externalReferenceId,

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

gcmCredentialSid?: string;
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. */
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. */
messagingServiceSid?: string;

@@ -52,3 +52,3 @@ /** Deprecated. */

gcmCredentialSid?: string;
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. */
/** The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. */
messagingServiceSid?: string;

@@ -243,3 +243,3 @@ /** Deprecated. */

/**
* The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. In order to send SMS notifications this parameter has to be set.
* The SID of the [Messaging Service](https://www.twilio.com/docs/sms/quickstart#messaging-services) to use for SMS Bindings. In order to send SMS notifications this parameter has to be set.
*/

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

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

gcm?: any;
/** The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. */
/** The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/quickstart) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. */
sms?: any;

@@ -30,0 +30,0 @@ /** Deprecated. */

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

/**
* The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message.
* The SID of the inbound resource; either the [Call](https://www.twilio.com/docs/voice/api/call-resource) or [Message](https://www.twilio.com/docs/sms/api/message-resource).
*/

@@ -142,0 +142,0 @@ inboundResourceSid: string;

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

export interface ShortCodeListInstanceCreateOptions {
/** The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. */
/** The SID of a Twilio [ShortCode](https://www.twilio.com/en-us/messaging/channels/sms/short-codes) resource that represents the short code you would like to assign to your Proxy Service. */
sid: string;

@@ -21,0 +21,0 @@ }

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

import { BuildStatusListInstance } from "./build/buildStatus";
export type BuildRuntime = "node8" | "node10" | "node12" | "node14" | "node16";
export type BuildRuntime = "node8" | "node10" | "node12" | "node14" | "node16" | "node18";
export type BuildStatus = "building" | "completed" | "failed";

@@ -10,0 +10,0 @@ /**

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

eid?: string;
/** Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. */
/** Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. */
simSid?: string;

@@ -46,3 +46,3 @@ /** List the eSIM Profiles that are in a given status. */

eid?: string;
/** Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. */
/** Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. */
simSid?: string;

@@ -62,3 +62,3 @@ /** List the eSIM Profiles that are in a given status. */

eid?: string;
/** Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. */
/** Find the eSIM Profile resource related to a [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource by providing the SIM SID. Will always return an array with either 1 or 0 records. */
simSid?: string;

@@ -143,3 +143,3 @@ /** List the eSIM Profiles that are in a given status. */

/**
* The SID of the [Sim](https://www.twilio.com/docs/iot/wireless/api/sim-resource) resource that this eSIM Profile controls.
* The SID of the [Sim](https://www.twilio.com/docs/iot/supersim/api/sim-resource) resource that this eSIM Profile controls.
*/

@@ -146,0 +146,0 @@ simSid: string;

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

ordering?: string;
/** Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. */
/** Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons. */
hasAddons?: boolean;

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

ordering?: string;
/** Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. */
/** Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons. */
hasAddons?: boolean;

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

ordering?: string;
/** Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. */
/** Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons. */
hasAddons?: boolean;

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

/**
* An object that contains the [addon](https://www.twilio.com/docs/taskrouter/marketplace) data for all installed addons.
* An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons.
*/

@@ -262,0 +262,0 @@ addons: string;

import TrusthubBase from "../TrusthubBase";
import Version from "../../base/Version";
import { ComplianceInquiriesListInstance } from "./v1/complianceInquiries";
import { ComplianceTollfreeInquiriesListInstance } from "./v1/complianceTollfreeInquiries";
import { CustomerProfilesListInstance } from "./v1/customerProfiles";

@@ -20,2 +21,4 @@ import { EndUserListInstance } from "./v1/endUser";

protected _complianceInquiries?: ComplianceInquiriesListInstance;
/** complianceTollfreeInquiries - { Twilio.Trusthub.V1.ComplianceTollfreeInquiriesListInstance } resource */
protected _complianceTollfreeInquiries?: ComplianceTollfreeInquiriesListInstance;
/** customerProfiles - { Twilio.Trusthub.V1.CustomerProfilesListInstance } resource */

@@ -37,2 +40,4 @@ protected _customerProfiles?: CustomerProfilesListInstance;

get complianceInquiries(): ComplianceInquiriesListInstance;
/** Getter for complianceTollfreeInquiries resource */
get complianceTollfreeInquiries(): ComplianceTollfreeInquiriesListInstance;
/** Getter for customerProfiles resource */

@@ -39,0 +44,0 @@ get customerProfiles(): CustomerProfilesListInstance;

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

const complianceInquiries_1 = require("./v1/complianceInquiries");
const complianceTollfreeInquiries_1 = require("./v1/complianceTollfreeInquiries");
const customerProfiles_1 = require("./v1/customerProfiles");

@@ -44,2 +45,9 @@ const endUser_1 = require("./v1/endUser");

}
/** Getter for complianceTollfreeInquiries resource */
get complianceTollfreeInquiries() {
this._complianceTollfreeInquiries =
this._complianceTollfreeInquiries ||
(0, complianceTollfreeInquiries_1.ComplianceTollfreeInquiriesListInstance)(this);
return this._complianceTollfreeInquiries;
}
/** Getter for customerProfiles resource */

@@ -46,0 +54,0 @@ get customerProfiles() {

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

import Numbers from "./Numbers";
import Oauth from "./Oauth";
import Preview from "./Preview";

@@ -107,4 +106,2 @@ import Pricing from "./Pricing";

_numbers?: Numbers;
/** (Twilio.Oauth) - oauth domain */
_oauth?: Oauth;
/** (Twilio.Preview) - preview domain */

@@ -192,4 +189,2 @@ _preview?: Preview;

get numbers(): Numbers;
/** Getter for (Twilio.Oauth) domain */
get oauth(): Oauth;
/** Getter for (Twilio.Preview) domain */

@@ -196,0 +191,0 @@ get preview(): Preview;

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

this.numbers;
this.oauth;
this.preview;

@@ -161,6 +160,2 @@ this.pricing;

}
/** Getter for (Twilio.Oauth) domain */
get oauth() {
return this._oauth ?? (this._oauth = new (require("./Oauth"))(this));
}
/** Getter for (Twilio.Preview) domain */

@@ -167,0 +162,0 @@ get preview() {

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

defaultTemplateSid?: string;
/** Whether to allow verifications from the service to reach the stream-events sinks if configured */
verifyEventSubscriptionEnabled?: boolean;
}

@@ -91,2 +93,4 @@ /**

defaultTemplateSid?: string;
/** Whether to allow verifications from the service to reach the stream-events sinks if configured */
verifyEventSubscriptionEnabled?: boolean;
}

@@ -224,2 +228,3 @@ /**

default_template_sid: string;
verify_event_subscription_enabled: boolean;
date_created: Date;

@@ -289,2 +294,6 @@ date_updated: Date;

/**
* Whether to allow verifications from the service to reach the stream-events sinks if configured
*/
verifyEventSubscriptionEnabled: boolean;
/**
* The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.

@@ -387,2 +396,3 @@ */

defaultTemplateSid: string;
verifyEventSubscriptionEnabled: boolean;
dateCreated: Date;

@@ -389,0 +399,0 @@ dateUpdated: Date;

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

data["DefaultTemplateSid"] = params["defaultTemplateSid"];
if (params["verifyEventSubscriptionEnabled"] !== undefined)
data["VerifyEventSubscriptionEnabled"] = serialize.bool(params["verifyEventSubscriptionEnabled"]);
const headers = {};

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

this.defaultTemplateSid = payload.default_template_sid;
this.verifyEventSubscriptionEnabled =
payload.verify_event_subscription_enabled;
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);

@@ -286,2 +290,3 @@ this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);

defaultTemplateSid: this.defaultTemplateSid,
verifyEventSubscriptionEnabled: this.verifyEventSubscriptionEnabled,
dateCreated: this.dateCreated,

@@ -348,2 +353,4 @@ dateUpdated: this.dateUpdated,

data["DefaultTemplateSid"] = params["defaultTemplateSid"];
if (params["verifyEventSubscriptionEnabled"] !== undefined)
data["VerifyEventSubscriptionEnabled"] = serialize.bool(params["verifyEventSubscriptionEnabled"]);
const headers = {};

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

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

riskCheck?: VerificationRiskCheck;
/** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. */
tags?: string;
}

@@ -52,0 +54,0 @@ export interface VerificationContext {

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

data["RiskCheck"] = params["riskCheck"];
if (params["tags"] !== undefined)
data["Tags"] = params["tags"];
const headers = {};

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

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

/**
* An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/verify/pricing).
* An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/en-us/verify/pricing).
*/

@@ -172,0 +172,0 @@ price: any;

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

@@ -23,3 +23,3 @@ "contributors": [

"dependencies": {
"axios": "^0.26.1",
"axios": "^1.6.0",
"dayjs": "^1.11.9",

@@ -26,0 +26,0 @@ "https-proxy-agent": "^5.0.0",

Sorry, the diff of this file is not supported yet

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