Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twilio

Package Overview
Dependencies
Maintainers
1
Versions
305
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.21.0 to 4.22.0

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

12

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

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

connect_app_sid: string;
date_created: Date;
date_updated: Date;
permissions: Array<AuthorizedConnectAppPermission>;

@@ -119,10 +117,2 @@ uri: string;

/**
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
*/
dateCreated: Date;
/**
* The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
*/
dateUpdated: Date;
/**
* The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.

@@ -156,4 +146,2 @@ */

connectAppSid: string;
dateCreated: Date;
dateUpdated: Date;
permissions: AuthorizedConnectAppPermission[];

@@ -160,0 +148,0 @@ uri: string;

4

lib/rest/api/v2010/account/authorizedConnectApp.js

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

this.connectAppSid = payload.connect_app_sid;
this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
this.permissions = payload.permissions;

@@ -108,4 +106,2 @@ this.uri = payload.uri;

connectAppSid: this.connectAppSid,
dateCreated: this.dateCreated,
dateUpdated: this.dateUpdated,
permissions: this.permissions,

@@ -112,0 +108,0 @@ uri: this.uri,

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

trim?: string;
/** A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call\\\'s call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. */
callToken?: string;
}

@@ -136,0 +138,0 @@ /**

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

data["Trim"] = params["trim"];
if (params["callToken"] !== undefined)
data["CallToken"] = params["callToken"];
const headers = {};

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

@@ -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;

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

export interface SubscribedEventContextUpdateOptions {
/** The schema version that the subscription should use. */
/** The schema version that the Subscription should use. */
schemaVersion?: number;

@@ -20,3 +20,3 @@ }

type: string;
/** The schema version that the subscription should use. */
/** The schema version that the Subscription should use. */
schemaVersion?: number;

@@ -141,3 +141,3 @@ }

/**
* The schema version that the subscription should use.
* The schema version that the Subscription should use.
*/

@@ -144,0 +144,0 @@ schemaVersion: number;

@@ -8,2 +8,4 @@ import FlexApiBase from "../FlexApiBase";

import { InsightsAssessmentsCommentListInstance } from "./v1/insightsAssessmentsComment";
import { InsightsConversationalAiListInstance } from "./v1/insightsConversationalAi";
import { InsightsConversationalAiReportInsightsListInstance } from "./v1/insightsConversationalAiReportInsights";
import { InsightsConversationsListInstance } from "./v1/insightsConversations";

@@ -19,2 +21,3 @@ import { InsightsQuestionnairesListInstance } from "./v1/insightsQuestionnaires";

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

@@ -38,2 +41,6 @@ export default class V1 extends Version {

protected _insightsAssessmentsComment?: InsightsAssessmentsCommentListInstance;
/** insightsConversationalAi - { Twilio.FlexApi.V1.InsightsConversationalAiListInstance } resource */
protected _insightsConversationalAi?: InsightsConversationalAiListInstance;
/** insightsConversationalAiReportInsights - { Twilio.FlexApi.V1.InsightsConversationalAiReportInsightsListInstance } resource */
protected _insightsConversationalAiReportInsights?: InsightsConversationalAiReportInsightsListInstance;
/** insightsConversations - { Twilio.FlexApi.V1.InsightsConversationsListInstance } resource */

@@ -59,2 +66,4 @@ protected _insightsConversations?: InsightsConversationsListInstance;

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

@@ -72,2 +81,6 @@ protected _webChannel?: WebChannelListInstance;

get insightsAssessmentsComment(): InsightsAssessmentsCommentListInstance;
/** Getter for insightsConversationalAi resource */
get insightsConversationalAi(): InsightsConversationalAiListInstance;
/** Getter for insightsConversationalAiReportInsights resource */
get insightsConversationalAiReportInsights(): InsightsConversationalAiReportInsightsListInstance;
/** Getter for insightsConversations resource */

@@ -93,4 +106,6 @@ get insightsConversations(): InsightsConversationsListInstance;

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

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

const insightsAssessmentsComment_1 = require("./v1/insightsAssessmentsComment");
const insightsConversationalAi_1 = require("./v1/insightsConversationalAi");
const insightsConversationalAiReportInsights_1 = require("./v1/insightsConversationalAiReportInsights");
const insightsConversations_1 = require("./v1/insightsConversations");

@@ -36,2 +38,3 @@ const insightsQuestionnaires_1 = require("./v1/insightsQuestionnaires");

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

@@ -75,2 +78,16 @@ class V1 extends Version_1.default {

}
/** Getter for insightsConversationalAi resource */
get insightsConversationalAi() {
this._insightsConversationalAi =
this._insightsConversationalAi ||
(0, insightsConversationalAi_1.InsightsConversationalAiListInstance)(this);
return this._insightsConversationalAi;
}
/** Getter for insightsConversationalAiReportInsights resource */
get insightsConversationalAiReportInsights() {
this._insightsConversationalAiReportInsights =
this._insightsConversationalAiReportInsights ||
(0, insightsConversationalAiReportInsights_1.InsightsConversationalAiReportInsightsListInstance)(this);
return this._insightsConversationalAiReportInsights;
}
/** Getter for insightsConversations resource */

@@ -139,2 +156,8 @@ get insightsConversations() {

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

@@ -141,0 +164,0 @@ get webChannel() {

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

flex_service_instance_sid: string;
flex_instance_sid: string;
ui_language: string;

@@ -101,2 +102,3 @@ ui_attributes: any;

citrix_voice_vdi: any;
offline_config: any;
}

@@ -174,2 +176,6 @@ export declare class ConfigurationInstance {

/**
* The SID of the Flex instance.
*/
flexInstanceSid: string;
/**
* The primary language of the Flex UI.

@@ -294,2 +300,6 @@ */

citrixVoiceVdi: any;
/**
* Presence and presence ttl configuration
*/
offlineConfig: any;
private get _proxy();

@@ -336,2 +346,3 @@ /**

flexServiceInstanceSid: string;
flexInstanceSid: string;
uiLanguage: string;

@@ -367,2 +378,3 @@ uiAttributes: any;

citrixVoiceVdi: any;
offlineConfig: any;
};

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

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

this.flexServiceInstanceSid = payload.flex_service_instance_sid;
this.flexInstanceSid = payload.flex_instance_sid;
this.uiLanguage = payload.ui_language;

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

this.citrixVoiceVdi = payload.citrix_voice_vdi;
this.offlineConfig = payload.offline_config;
this._solution = {};

@@ -148,2 +150,3 @@ }

flexServiceInstanceSid: this.flexServiceInstanceSid,
flexInstanceSid: this.flexInstanceSid,
uiLanguage: this.uiLanguage,

@@ -179,2 +182,3 @@ uiAttributes: this.uiAttributes,

citrixVoiceVdi: this.citrixVoiceVdi,
offlineConfig: this.offlineConfig,
};

@@ -181,0 +185,0 @@ }

@@ -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,

@@ -1,19 +0,4 @@

import { MediaProcessorListInstance } from "./media/v1/mediaProcessor";
import { MediaRecordingListInstance } from "./media/v1/mediaRecording";
import { PlayerStreamerListInstance } from "./media/v1/playerStreamer";
import MediaBase from "./MediaBase";
declare class Media extends MediaBase {
/**
* @deprecated - Use v1.mediaProcessor instead
*/
get mediaProcessor(): MediaProcessorListInstance;
/**
* @deprecated - Use v1.mediaRecording instead
*/
get mediaRecording(): MediaRecordingListInstance;
/**
* @deprecated - Use v1.playerStreamer instead
*/
get playerStreamer(): PlayerStreamerListInstance;
}
export = Media;

@@ -7,24 +7,3 @@ "use strict";

class Media extends MediaBase_1.default {
/**
* @deprecated - Use v1.mediaProcessor instead
*/
get mediaProcessor() {
console.warn("mediaProcessor is deprecated. Use v1.mediaProcessor instead.");
return this.v1.mediaProcessor;
}
/**
* @deprecated - Use v1.mediaRecording instead
*/
get mediaRecording() {
console.warn("mediaRecording is deprecated. Use v1.mediaRecording instead.");
return this.v1.mediaRecording;
}
/**
* @deprecated - Use v1.playerStreamer instead
*/
get playerStreamer() {
console.warn("playerStreamer is deprecated. Use v1.playerStreamer instead.");
return this.v1.playerStreamer;
}
}
module.exports = Media;

@@ -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();

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

/**
* Options to pass to update a UsAppToPersonInstance
*/
export interface UsAppToPersonContextUpdateOptions {
/** Indicates that this SMS campaign will send messages that contain links. */
hasEmbeddedLinks: boolean;
/** Indicates that this SMS campaign will send messages that contain phone numbers. */
hasEmbeddedPhone: boolean;
/** An array of sample message strings, min two and max five. Min length for each sample: 20 chars. Max length for each sample: 1024 chars. */
messageSamples: Array<string>;
/** Required for all Campaigns. Details around how a consumer opts-in to their campaign, therefore giving consent to receive their messages. If multiple opt-in methods can be used for the same campaign, they must all be listed. 40 character minimum. 2048 character maximum. */
messageFlow: string;
/** A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters. */
description: string;
/** A boolean that specifies whether campaign requires age gate for federally legal content. */
ageGated: boolean;
/** A boolean that specifies whether campaign allows direct lending or not. */
directLending: boolean;
}
/**
* Options to pass to create a UsAppToPersonInstance

@@ -37,2 +56,8 @@ */

helpKeywords?: Array<string>;
/** A boolean that specifies whether campaign has Subscriber Optin or not. */
subscriberOptIn?: boolean;
/** A boolean that specifies whether campaign is age gated or not. */
ageGated?: boolean;
/** A boolean that specifies whether campaign allows direct lending or not. */
directLending?: boolean;
}

@@ -90,2 +115,11 @@ /**

/**
* Update a UsAppToPersonInstance
*
* @param params - Parameter for request
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed UsAppToPersonInstance
*/
update(params: UsAppToPersonContextUpdateOptions, callback?: (error: Error | null, item?: UsAppToPersonInstance) => any): Promise<UsAppToPersonInstance>;
/**
* Provide a user-friendly representation

@@ -107,2 +141,3 @@ */

fetch(callback?: (error: Error | null, item?: UsAppToPersonInstance) => any): Promise<UsAppToPersonInstance>;
update(params: UsAppToPersonContextUpdateOptions, callback?: (error: Error | null, item?: UsAppToPersonInstance) => any): Promise<UsAppToPersonInstance>;
/**

@@ -129,2 +164,5 @@ * Provide a user-friendly representation

has_embedded_phone: boolean;
subscriber_opt_in: boolean;
age_gated: boolean;
direct_lending: boolean;
campaign_status: string;

@@ -189,2 +227,14 @@ campaign_id: string;

/**
* A boolean that specifies whether campaign has Subscriber Optin or not.
*/
subscriberOptIn: boolean;
/**
* A boolean that specifies whether campaign is age gated or not.
*/
ageGated: boolean;
/**
* A boolean that specifies whether campaign allows direct lending or not.
*/
directLending: boolean;
/**
* Campaign status. Examples: IN_PROGRESS, VERIFIED, FAILED.

@@ -271,2 +321,11 @@ */

/**
* Update a UsAppToPersonInstance
*
* @param params - Parameter for request
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed UsAppToPersonInstance
*/
update(params: UsAppToPersonContextUpdateOptions, callback?: (error: Error | null, item?: UsAppToPersonInstance) => any): Promise<UsAppToPersonInstance>;
/**
* Provide a user-friendly representation

@@ -286,2 +345,5 @@ *

hasEmbeddedPhone: boolean;
subscriberOptIn: boolean;
ageGated: boolean;
directLending: boolean;
campaignStatus: string;

@@ -288,0 +350,0 @@ campaignId: string;

@@ -56,2 +56,52 @@ "use strict";

}
update(params, callback) {
if (params === null || params === undefined) {
throw new Error('Required parameter "params" missing.');
}
if (params["hasEmbeddedLinks"] === null ||
params["hasEmbeddedLinks"] === undefined) {
throw new Error("Required parameter \"params['hasEmbeddedLinks']\" missing.");
}
if (params["hasEmbeddedPhone"] === null ||
params["hasEmbeddedPhone"] === undefined) {
throw new Error("Required parameter \"params['hasEmbeddedPhone']\" missing.");
}
if (params["messageSamples"] === null ||
params["messageSamples"] === undefined) {
throw new Error("Required parameter \"params['messageSamples']\" missing.");
}
if (params["messageFlow"] === null || params["messageFlow"] === undefined) {
throw new Error("Required parameter \"params['messageFlow']\" missing.");
}
if (params["description"] === null || params["description"] === undefined) {
throw new Error("Required parameter \"params['description']\" missing.");
}
if (params["ageGated"] === null || params["ageGated"] === undefined) {
throw new Error("Required parameter \"params['ageGated']\" missing.");
}
if (params["directLending"] === null ||
params["directLending"] === undefined) {
throw new Error("Required parameter \"params['directLending']\" missing.");
}
let data = {};
data["HasEmbeddedLinks"] = serialize.bool(params["hasEmbeddedLinks"]);
data["HasEmbeddedPhone"] = serialize.bool(params["hasEmbeddedPhone"]);
data["MessageSamples"] = serialize.map(params["messageSamples"], (e) => e);
data["MessageFlow"] = params["messageFlow"];
data["Description"] = params["description"];
data["AgeGated"] = serialize.bool(params["ageGated"]);
data["DirectLending"] = serialize.bool(params["directLending"]);
const headers = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
const instance = this;
let operationVersion = instance._version, operationPromise = operationVersion.update({
uri: instance._uri,
method: "post",
data,
headers,
});
operationPromise = operationPromise.then((payload) => new UsAppToPersonInstance(operationVersion, payload, instance._solution.messagingServiceSid, instance._solution.sid));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
return operationPromise;
}
/**

@@ -82,2 +132,5 @@ * Provide a user-friendly representation

this.hasEmbeddedPhone = payload.has_embedded_phone;
this.subscriberOptIn = payload.subscriber_opt_in;
this.ageGated = payload.age_gated;
this.directLending = payload.direct_lending;
this.campaignStatus = payload.campaign_status;

@@ -127,2 +180,5 @@ this.campaignId = payload.campaign_id;

}
update(params, callback) {
return this._proxy.update(params, callback);
}
/**

@@ -144,2 +200,5 @@ * Provide a user-friendly representation

hasEmbeddedPhone: this.hasEmbeddedPhone,
subscriberOptIn: this.subscriberOptIn,
ageGated: this.ageGated,
directLending: this.directLending,
campaignStatus: this.campaignStatus,

@@ -229,2 +288,8 @@ campaignId: this.campaignId,

data["HelpKeywords"] = serialize.map(params["helpKeywords"], (e) => e);
if (params["subscriberOptIn"] !== undefined)
data["SubscriberOptIn"] = serialize.bool(params["subscriberOptIn"]);
if (params["ageGated"] !== undefined)
data["AgeGated"] = serialize.bool(params["ageGated"]);
if (params["directLending"] !== undefined)
data["DirectLending"] = serialize.bool(params["directLending"]);
const headers = {};

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

@@ -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. */

@@ -5,2 +5,3 @@ import NumbersBase from "../NumbersBase";

import { PortingBulkPortabilityListInstance } from "./v1/portingBulkPortability";
import { PortingPortInFetchListInstance } from "./v1/portingPortInFetch";
import { PortingPortabilityListInstance } from "./v1/portingPortability";

@@ -18,2 +19,4 @@ export default class V1 extends Version {

protected _portingBulkPortabilities?: PortingBulkPortabilityListInstance;
/** portingPortIns - { Twilio.Numbers.V1.PortingPortInFetchListInstance } resource */
protected _portingPortIns?: PortingPortInFetchListInstance;
/** portingPortabilities - { Twilio.Numbers.V1.PortingPortabilityListInstance } resource */

@@ -25,4 +28,6 @@ protected _portingPortabilities?: PortingPortabilityListInstance;

get portingBulkPortabilities(): PortingBulkPortabilityListInstance;
/** Getter for portingPortIns resource */
get portingPortIns(): PortingPortInFetchListInstance;
/** Getter for portingPortabilities resource */
get portingPortabilities(): PortingPortabilityListInstance;
}

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

const portingBulkPortability_1 = require("./v1/portingBulkPortability");
const portingPortInFetch_1 = require("./v1/portingPortInFetch");
const portingPortability_1 = require("./v1/portingPortability");

@@ -46,2 +47,8 @@ class V1 extends Version_1.default {

}
/** Getter for portingPortIns resource */
get portingPortIns() {
this._portingPortIns =
this._portingPortIns || (0, portingPortInFetch_1.PortingPortInFetchListInstance)(this);
return this._portingPortIns;
}
/** Getter for portingPortabilities resource */

@@ -48,0 +55,0 @@ get portingPortabilities() {

@@ -6,3 +6,2 @@ import Domain from "../base/Domain";

import Marketplace from "./preview/Marketplace";
import Understand from "./preview/Understand";
import Wireless from "./preview/Wireless";

@@ -14,3 +13,2 @@ declare class PreviewBase extends Domain {

_marketplace?: Marketplace;
_understand?: Understand;
_wireless?: Wireless;

@@ -27,5 +25,4 @@ /**

get marketplace(): Marketplace;
get understand(): Understand;
get wireless(): Wireless;
}
export = PreviewBase;

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

const Marketplace_1 = __importDefault(require("./preview/Marketplace"));
const Understand_1 = __importDefault(require("./preview/Understand"));
const Wireless_1 = __importDefault(require("./preview/Wireless"));

@@ -49,6 +48,2 @@ class PreviewBase extends Domain_1.default {

}
get understand() {
this._understand = this._understand || new Understand_1.default(this);
return this._understand;
}
get wireless() {

@@ -55,0 +50,0 @@ this._wireless = this._wireless || new Wireless_1.default(this);

@@ -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;

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

beepOnCustomerEntrance?: boolean;
/** The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`. */
jitterBufferSize?: string;
}

@@ -124,0 +126,0 @@ /**

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

data["BeepOnCustomerEntrance"] = serialize.bool(params["beepOnCustomerEntrance"]);
if (params["jitterBufferSize"] !== undefined)
data["JitterBufferSize"] = params["jitterBufferSize"];
const headers = {};

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

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

beepOnCustomerEntrance?: boolean;
/** The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`. */
jitterBufferSize?: string;
}

@@ -119,0 +121,0 @@ /**

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

data["BeepOnCustomerEntrance"] = serialize.bool(params["beepOnCustomerEntrance"]);
if (params["jitterBufferSize"] !== undefined)
data["JitterBufferSize"] = params["jitterBufferSize"];
const headers = {};

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

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

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

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

@@ -37,2 +43,6 @@ protected _customerProfiles?: CustomerProfilesListInstance;

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

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

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

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

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

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

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

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

primaryProfileSid: string;
/** The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used. */
notificationEmail?: string;
}

@@ -19,0 +21,0 @@ export interface ComplianceInquiriesContext {

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

data["PrimaryProfileSid"] = params["primaryProfileSid"];
if (params["notificationEmail"] !== undefined)
data["NotificationEmail"] = params["notificationEmail"];
const headers = {};

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

import { Client, ClientOpts, RequestOpts } from "../base/BaseTwilio";
import Accounts from "./Accounts";
import Api from "./Api";
import Autopilot from "./Autopilot";
import Bulkexports from "./Bulkexports";

@@ -22,3 +21,2 @@ import Chat from "./Chat";

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

@@ -71,4 +69,2 @@ import Pricing from "./Pricing";

_api?: Api;
/** (Twilio.Autopilot) - autopilot domain */
_autopilot?: Autopilot;
/** (Twilio.Bulkexports) - bulkexports domain */

@@ -108,4 +104,2 @@ _bulkexports?: Bulkexports;

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

@@ -157,4 +151,2 @@ _preview?: Preview;

get api(): Api;
/** Getter for (Twilio.Autopilot) domain */
get autopilot(): Autopilot;
/** Getter for (Twilio.Bulkexports) domain */

@@ -194,4 +186,2 @@ get bulkexports(): Bulkexports;

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

@@ -198,0 +188,0 @@ get preview(): Preview;

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

this.api;
this.autopilot;
this.bulkexports;

@@ -56,3 +55,2 @@ this.chat;

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

@@ -84,6 +82,2 @@ this.pricing;

}
/** Getter for (Twilio.Autopilot) domain */
get autopilot() {
return (this._autopilot ?? (this._autopilot = new (require("./Autopilot"))(this)));
}
/** Getter for (Twilio.Bulkexports) domain */

@@ -163,6 +157,2 @@ get bulkexports() {

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

@@ -169,0 +159,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;

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

encryptionKeySid?: string;
/** The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href=\\\'https://tools.ietf.org/html/rfc3986#section-2\\\'>RFC 3986</a>. */
/** The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2). */
awsS3Url?: string;

@@ -91,3 +91,3 @@ /** Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud. */

/**
* The URL of the AWS S3 bucket where the compositions are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href=\'https://tools.ietf.org/html/rfc3986#section-2\'>RFC 3986</a>.
* The URL of the AWS S3 bucket where the compositions are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2).
*/

@@ -94,0 +94,0 @@ awsS3Url: string;

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

encryptionKeySid?: string;
/** The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the <a href=\\\'https://tools.ietf.org/html/rfc3986#section-2\\\'>RFC 3986</a>. */
/** The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2). */
awsS3Url?: string;

@@ -91,3 +91,3 @@ /** Whether all recordings should be written to the `aws_s3_url`. When `false`, all recordings are stored in our cloud. */

/**
* The URL of the AWS S3 bucket where the recordings are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the <a href=\'https://tools.ietf.org/html/rfc3986#section-2\'>RFC 3986</a>.
* The URL of the AWS S3 bucket where the recordings are stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the [RFC 3986](https://tools.ietf.org/html/rfc3986#section-2).
*/

@@ -94,0 +94,0 @@ awsS3Url: string;

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