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.1 to 5.0.2

44

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

@@ -127,13 +127,13 @@ /// <reference types="node" />

status?: CallStatus;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTime?: Date;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTimeBefore?: Date;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTimeAfter?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTime?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTimeBefore?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTimeAfter?: Date;

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

status?: CallStatus;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTime?: Date;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTimeBefore?: Date;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTimeAfter?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTime?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTimeBefore?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTimeAfter?: Date;

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

status?: CallStatus;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTime?: Date;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTimeBefore?: Date;
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
startTimeAfter?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTime?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTimeBefore?: Date;
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
endTimeAfter?: Date;

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

/**
* The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
* The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
*/
dateCreated: Date;
/**
* The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
* The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
*/

@@ -374,7 +374,7 @@ dateUpdated: Date;

/**
* The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
* The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
*/
startTime: Date;
/**
* The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
* The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
*/

@@ -381,0 +381,0 @@ endTime: Date;

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

status: ParticipantStatus;
queue_time: string;
uri: string;

@@ -324,2 +325,6 @@ }

/**
* The wait time in milliseconds before participant\'s call is placed. Only available in the response to a create participant request.
*/
queueTime: string;
/**
* The URI of the resource, relative to `https://api.twilio.com`.

@@ -381,2 +386,3 @@ */

status: ParticipantStatus;
queueTime: string;
uri: string;

@@ -383,0 +389,0 @@ };

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

this.status = payload.status;
this.queueTime = payload.queue_time;
this.uri = payload.uri;

@@ -191,2 +192,3 @@ this._solution = {

status: this.status,
queueTime: this.queueTime,
uri: this.uri,

@@ -193,0 +195,0 @@ };

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

export interface ApprovalCreateSolution {
sid: string;
contentSid: string;
}

@@ -47,3 +47,3 @@ export interface ApprovalCreateListInstance {

}
export declare function ApprovalCreateListInstance(version: V1, sid: string): ApprovalCreateListInstance;
export declare function ApprovalCreateListInstance(version: V1, contentSid: string): ApprovalCreateListInstance;
interface ApprovalCreateResource {

@@ -59,3 +59,3 @@ name: string;

protected _version: V1;
constructor(_version: V1, payload: ApprovalCreateResource, sid: string);
constructor(_version: V1, payload: ApprovalCreateResource, contentSid: string);
name: string;

@@ -62,0 +62,0 @@ category: string;

@@ -27,10 +27,10 @@ "use strict";

exports.ContentApprovalRequest = ContentApprovalRequest;
function ApprovalCreateListInstance(version, sid) {
if (!(0, utility_1.isValidPathParam)(sid)) {
throw new Error("Parameter 'sid' is not valid.");
function ApprovalCreateListInstance(version, contentSid) {
if (!(0, utility_1.isValidPathParam)(contentSid)) {
throw new Error("Parameter 'contentSid' is not valid.");
}
const instance = {};
instance._version = version;
instance._solution = { sid };
instance._uri = `/Content/${sid}/ApprovalRequests/whatsapp`;
instance._solution = { contentSid };
instance._uri = `/Content/${contentSid}/ApprovalRequests/whatsapp`;
instance.create = function create(params, callback) {

@@ -50,3 +50,3 @@ if (params === null || params === undefined) {

});
operationPromise = operationPromise.then((payload) => new ApprovalCreateInstance(operationVersion, payload, instance._solution.sid));
operationPromise = operationPromise.then((payload) => new ApprovalCreateInstance(operationVersion, payload, instance._solution.contentSid));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);

@@ -65,3 +65,3 @@ return operationPromise;

class ApprovalCreateInstance {
constructor(_version, payload, sid) {
constructor(_version, payload, contentSid) {
this._version = _version;

@@ -68,0 +68,0 @@ this.name = payload.name;

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

export interface ApprovalFetchContextSolution {
sid: string;
contentSid: string;
}

@@ -27,3 +27,3 @@ export declare class ApprovalFetchContextImpl implements ApprovalFetchContext {

protected _uri: string;
constructor(_version: V1, sid: string);
constructor(_version: V1, contentSid: string);
fetch(callback?: (error: Error | null, item?: ApprovalFetchInstance) => any): Promise<ApprovalFetchInstance>;

@@ -48,3 +48,3 @@ /**

protected _context?: ApprovalFetchContext;
constructor(_version: V1, payload: ApprovalFetchResource, sid: string);
constructor(_version: V1, payload: ApprovalFetchResource, contentSid: string);
/**

@@ -89,3 +89,3 @@ * The unique string that that we created to identify the Content resource.

export interface ApprovalFetchSolution {
sid: string;
contentSid: string;
}

@@ -104,3 +104,3 @@ export interface ApprovalFetchListInstance {

}
export declare function ApprovalFetchListInstance(version: V1, sid: string): ApprovalFetchListInstance;
export declare function ApprovalFetchListInstance(version: V1, contentSid: string): ApprovalFetchListInstance;
export {};

@@ -22,9 +22,9 @@ "use strict";

class ApprovalFetchContextImpl {
constructor(_version, sid) {
constructor(_version, contentSid) {
this._version = _version;
if (!(0, utility_1.isValidPathParam)(sid)) {
throw new Error("Parameter 'sid' is not valid.");
if (!(0, utility_1.isValidPathParam)(contentSid)) {
throw new Error("Parameter 'contentSid' is not valid.");
}
this._solution = { sid };
this._uri = `/Content/${sid}/ApprovalRequests`;
this._solution = { contentSid };
this._uri = `/Content/${contentSid}/ApprovalRequests`;
}

@@ -37,3 +37,3 @@ fetch(callback) {

});
operationPromise = operationPromise.then((payload) => new ApprovalFetchInstance(operationVersion, payload, instance._solution.sid));
operationPromise = operationPromise.then((payload) => new ApprovalFetchInstance(operationVersion, payload, instance._solution.contentSid));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);

@@ -56,3 +56,3 @@ return operationPromise;

class ApprovalFetchInstance {
constructor(_version, payload, sid) {
constructor(_version, payload, contentSid) {
this._version = _version;

@@ -63,3 +63,3 @@ this.sid = payload.sid;

this.url = payload.url;
this._solution = { sid };
this._solution = { contentSid };
}

@@ -69,3 +69,3 @@ get _proxy() {

this._context ||
new ApprovalFetchContextImpl(this._version, this._solution.sid);
new ApprovalFetchContextImpl(this._version, this._solution.contentSid);
return this._context;

@@ -101,12 +101,12 @@ }

exports.ApprovalFetchInstance = ApprovalFetchInstance;
function ApprovalFetchListInstance(version, sid) {
if (!(0, utility_1.isValidPathParam)(sid)) {
throw new Error("Parameter 'sid' is not valid.");
function ApprovalFetchListInstance(version, contentSid) {
if (!(0, utility_1.isValidPathParam)(contentSid)) {
throw new Error("Parameter 'contentSid' is not valid.");
}
const instance = (() => instance.get());
instance.get = function get() {
return new ApprovalFetchContextImpl(version, sid);
return new ApprovalFetchContextImpl(version, contentSid);
};
instance._version = version;
instance._solution = { sid };
instance._solution = { contentSid };
instance._uri = ``;

@@ -113,0 +113,0 @@ instance.toJSON = function toJSON() {

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

export interface ConversationListInstanceEachOptions {
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
/** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
startDate?: string;
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
/** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
endDate?: string;

@@ -100,5 +100,5 @@ /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */

export interface ConversationListInstanceOptions {
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
/** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
startDate?: string;
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
/** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
endDate?: string;

@@ -116,5 +116,5 @@ /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */

export interface ConversationListInstancePageOptions {
/** Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. */
/** Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
startDate?: string;
/** End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. */
/** Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. */
endDate?: string;

@@ -121,0 +121,0 @@ /** State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */

@@ -37,2 +37,6 @@ /// <reference types="node" />

description?: string;
/** The version of Flex Plugins CLI used to create this plugin */
cliVersion?: string;
/** The validation status of the plugin, indicating whether it has been validated */
validateStatus?: string;
}

@@ -39,0 +43,0 @@ /**

@@ -182,2 +182,6 @@ "use strict";

data["Description"] = params["description"];
if (params["cliVersion"] !== undefined)
data["CliVersion"] = params["cliVersion"];
if (params["validateStatus"] !== undefined)
data["ValidateStatus"] = params["validateStatus"];
const headers = {};

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

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

target_port_in_time_range_end: string;
port_in_request_status: string;
losing_carrier_information: any;

@@ -83,2 +84,6 @@ phone_numbers: Array<any>;

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

@@ -117,2 +122,3 @@ */

targetPortInTimeRangeEnd: string;
portInRequestStatus: string;
losingCarrierInformation: any;

@@ -119,0 +125,0 @@ phoneNumbers: any[];

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

this.targetPortInTimeRangeEnd = payload.target_port_in_time_range_end;
this.portInRequestStatus = payload.port_in_request_status;
this.losingCarrierInformation = payload.losing_carrier_information;

@@ -101,2 +102,3 @@ this.phoneNumbers = payload.phone_numbers;

targetPortInTimeRangeEnd: this.targetPortInTimeRangeEnd,
portInRequestStatus: this.portInRequestStatus,
losingCarrierInformation: this.losingCarrierInformation,

@@ -103,0 +105,0 @@ phoneNumbers: this.phoneNumbers,

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

/** The credential for confidential OAuth App. */
clientSecret: string;
clientSecret?: string;
/** JWT token related to the authorization code grant type. */

@@ -21,2 +21,6 @@ code?: string;

audience?: string;
/** JWT token related to refresh access token. */
refreshToken?: string;
/** The scope of token */
scope?: string;
}

@@ -50,3 +54,3 @@ export interface TokenSolution {

token_type: string;
expires_in: Date;
expires_in: number;
}

@@ -72,3 +76,3 @@ export declare class TokenInstance {

tokenType: string;
expiresIn: Date;
expiresIn: number;
/**

@@ -84,3 +88,3 @@ * Provide a user-friendly representation

tokenType: string;
expiresIn: Date;
expiresIn: number;
};

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

@@ -35,10 +35,7 @@ "use strict";

}
if (params["clientSecret"] === null ||
params["clientSecret"] === undefined) {
throw new Error("Required parameter \"params['clientSecret']\" missing.");
}
let data = {};
data["GrantType"] = params["grantType"];
data["ClientId"] = params["clientId"];
data["ClientSecret"] = params["clientSecret"];
if (params["clientSecret"] !== undefined)
data["ClientSecret"] = params["clientSecret"];
if (params["code"] !== undefined)

@@ -50,2 +47,6 @@ data["Code"] = params["code"];

data["Audience"] = params["audience"];
if (params["refreshToken"] !== undefined)
data["RefreshToken"] = params["refreshToken"];
if (params["scope"] !== undefined)
data["Scope"] = params["scope"];
const headers = {};

@@ -79,3 +80,3 @@ headers["Content-Type"] = "application/x-www-form-urlencoded";

this.tokenType = payload.token_type;
this.expiresIn = deserialize.iso8601DateTime(payload.expires_in);
this.expiresIn = payload.expires_in;
}

@@ -82,0 +83,0 @@ /**

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

/**
* Options to pass to update a ComplianceRegistrationInquiriesInstance
*/
export interface ComplianceRegistrationInquiriesContextUpdateOptions {
/** Indicates if the inquiry is being started from an ISV embedded component. */
isIsvEmbed?: boolean;
/** Theme id for styling the inquiry form. */
themeSetId?: string;
}
/**
* Options to pass to create a ComplianceRegistrationInquiriesInstance

@@ -89,12 +98,17 @@ */

statusCallbackUrl?: string;
/** Theme id for styling the inquiry form. */
themeSetId?: string;
}
export interface ComplianceRegistrationInquiriesSolution {
}
export interface ComplianceRegistrationInquiriesListInstance {
_version: V1;
_solution: ComplianceRegistrationInquiriesSolution;
_uri: string;
export interface ComplianceRegistrationInquiriesContext {
/**
* Create a ComplianceRegistrationInquiriesInstance
* Update a ComplianceRegistrationInquiriesInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed ComplianceRegistrationInquiriesInstance
*/
update(callback?: (error: Error | null, item?: ComplianceRegistrationInquiriesInstance) => any): Promise<ComplianceRegistrationInquiriesInstance>;
/**
* Update a ComplianceRegistrationInquiriesInstance
*
* @param params - Parameter for request

@@ -105,3 +119,3 @@ * @param callback - Callback to handle processed record

*/
create(params: ComplianceRegistrationInquiriesListInstanceCreateOptions, callback?: (error: Error | null, item?: ComplianceRegistrationInquiriesInstance) => any): Promise<ComplianceRegistrationInquiriesInstance>;
update(params: ComplianceRegistrationInquiriesContextUpdateOptions, callback?: (error: Error | null, item?: ComplianceRegistrationInquiriesInstance) => any): Promise<ComplianceRegistrationInquiriesInstance>;
/**

@@ -113,3 +127,19 @@ * Provide a user-friendly representation

}
export declare function ComplianceRegistrationInquiriesListInstance(version: V1): ComplianceRegistrationInquiriesListInstance;
export interface ComplianceRegistrationInquiriesContextSolution {
registrationId: string;
}
export declare class ComplianceRegistrationInquiriesContextImpl implements ComplianceRegistrationInquiriesContext {
protected _version: V1;
protected _solution: ComplianceRegistrationInquiriesContextSolution;
protected _uri: string;
constructor(_version: V1, registrationId: string);
update(params?: ComplianceRegistrationInquiriesContextUpdateOptions | ((error: Error | null, item?: ComplianceRegistrationInquiriesInstance) => any), callback?: (error: Error | null, item?: ComplianceRegistrationInquiriesInstance) => any): Promise<ComplianceRegistrationInquiriesInstance>;
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON(): ComplianceRegistrationInquiriesContextSolution;
[inspect.custom](_depth: any, options: InspectOptions): string;
}
interface ComplianceRegistrationInquiriesResource {

@@ -123,3 +153,5 @@ inquiry_id: string;

protected _version: V1;
constructor(_version: V1, payload: ComplianceRegistrationInquiriesResource);
protected _solution: ComplianceRegistrationInquiriesContextSolution;
protected _context?: ComplianceRegistrationInquiriesContext;
constructor(_version: V1, payload: ComplianceRegistrationInquiriesResource, registrationId?: string);
/**

@@ -141,3 +173,21 @@ * The unique ID used to start an embedded compliance registration session.

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

@@ -155,2 +205,26 @@ *

}
export interface ComplianceRegistrationInquiriesSolution {
}
export interface ComplianceRegistrationInquiriesListInstance {
_version: V1;
_solution: ComplianceRegistrationInquiriesSolution;
_uri: string;
(registrationId: string): ComplianceRegistrationInquiriesContext;
get(registrationId: string): ComplianceRegistrationInquiriesContext;
/**
* Create a ComplianceRegistrationInquiriesInstance
*
* @param params - Parameter for request
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed ComplianceRegistrationInquiriesInstance
*/
create(params: ComplianceRegistrationInquiriesListInstanceCreateOptions, callback?: (error: Error | null, item?: ComplianceRegistrationInquiriesInstance) => any): Promise<ComplianceRegistrationInquiriesInstance>;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
[inspect.custom](_depth: any, options: InspectOptions): any;
}
export declare function ComplianceRegistrationInquiriesListInstance(version: V1): ComplianceRegistrationInquiriesListInstance;
export {};

@@ -16,8 +16,96 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ComplianceRegistrationInquiriesInstance = exports.ComplianceRegistrationInquiriesListInstance = void 0;
exports.ComplianceRegistrationInquiriesListInstance = exports.ComplianceRegistrationInquiriesInstance = exports.ComplianceRegistrationInquiriesContextImpl = void 0;
const util_1 = require("util");
const deserialize = require("../../../base/deserialize");
const serialize = require("../../../base/serialize");
const utility_1 = require("../../../base/utility");
class ComplianceRegistrationInquiriesContextImpl {
constructor(_version, registrationId) {
this._version = _version;
if (!(0, utility_1.isValidPathParam)(registrationId)) {
throw new Error("Parameter 'registrationId' is not valid.");
}
this._solution = { registrationId };
this._uri = `/ComplianceInquiries/Registration/${registrationId}/RegulatoryCompliance/GB/Initialize`;
}
update(params, callback) {
if (params instanceof Function) {
callback = params;
params = {};
}
else {
params = params || {};
}
let data = {};
if (params["isIsvEmbed"] !== undefined)
data["IsIsvEmbed"] = serialize.bool(params["isIsvEmbed"]);
if (params["themeSetId"] !== undefined)
data["ThemeSetId"] = params["themeSetId"];
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 ComplianceRegistrationInquiriesInstance(operationVersion, payload, instance._solution.registrationId));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
return operationPromise;
}
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON() {
return this._solution;
}
[util_1.inspect.custom](_depth, options) {
return (0, util_1.inspect)(this.toJSON(), options);
}
}
exports.ComplianceRegistrationInquiriesContextImpl = ComplianceRegistrationInquiriesContextImpl;
class ComplianceRegistrationInquiriesInstance {
constructor(_version, payload, registrationId) {
this._version = _version;
this.inquiryId = payload.inquiry_id;
this.inquirySessionToken = payload.inquiry_session_token;
this.registrationId = payload.registration_id;
this.url = payload.url;
this._solution = { registrationId: registrationId || this.registrationId };
}
get _proxy() {
this._context =
this._context ||
new ComplianceRegistrationInquiriesContextImpl(this._version, this._solution.registrationId);
return this._context;
}
update(params, callback) {
return this._proxy.update(params, callback);
}
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON() {
return {
inquiryId: this.inquiryId,
inquirySessionToken: this.inquirySessionToken,
registrationId: this.registrationId,
url: this.url,
};
}
[util_1.inspect.custom](_depth, options) {
return (0, util_1.inspect)(this.toJSON(), options);
}
}
exports.ComplianceRegistrationInquiriesInstance = ComplianceRegistrationInquiriesInstance;
function ComplianceRegistrationInquiriesListInstance(version) {
const instance = {};
const instance = ((registrationId) => instance.get(registrationId));
instance.get = function get(registrationId) {
return new ComplianceRegistrationInquiriesContextImpl(version, registrationId);
};
instance._version = version;

@@ -122,2 +210,4 @@ instance._solution = {};

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

@@ -144,27 +234,1 @@ headers["Content-Type"] = "application/x-www-form-urlencoded";

exports.ComplianceRegistrationInquiriesListInstance = ComplianceRegistrationInquiriesListInstance;
class ComplianceRegistrationInquiriesInstance {
constructor(_version, payload) {
this._version = _version;
this.inquiryId = payload.inquiry_id;
this.inquirySessionToken = payload.inquiry_session_token;
this.registrationId = payload.registration_id;
this.url = payload.url;
}
/**
* Provide a user-friendly representation
*
* @returns Object
*/
toJSON() {
return {
inquiryId: this.inquiryId,
inquirySessionToken: this.inquirySessionToken,
registrationId: this.registrationId,
url: this.url,
};
}
[util_1.inspect.custom](_depth, options) {
return (0, util_1.inspect)(this.toJSON(), options);
}
}
exports.ComplianceRegistrationInquiriesInstance = ComplianceRegistrationInquiriesInstance;

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

friendlyName?: string;
/** The email address that will receive updates when the Customer-Profile resource changes status. */
/** The email address that will receive updates when the Trust Product resource changes status. */
email?: string;

@@ -30,5 +30,5 @@ }

friendlyName: string;
/** The email address that will receive updates when the Customer-Profile resource changes status. */
/** The email address that will receive updates when the Trust Product resource changes status. */
email: string;
/** The unique string of a policy that is associated to the Customer-Profile resource. */
/** The unique string of a policy that is associated to the Trust Product resource. */
policySid: string;

@@ -42,7 +42,7 @@ /** The URL we call to inform your application of status changes. */

export interface TrustProductsListInstanceEachOptions {
/** The verification status of the Customer-Profile resource. */
/** The verification status of the Trust Product resource. */
status?: TrustProductsStatus;
/** The string that you assigned to describe the resource. */
friendlyName?: string;
/** The unique string of a policy that is associated to the Customer-Profile resource. */
/** The unique string of a policy that is associated to the Trust Product resource. */
policySid?: string;

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

export interface TrustProductsListInstanceOptions {
/** The verification status of the Customer-Profile resource. */
/** The verification status of the Trust Product resource. */
status?: TrustProductsStatus;
/** The string that you assigned to describe the resource. */
friendlyName?: string;
/** The unique string of a policy that is associated to the Customer-Profile resource. */
/** The unique string of a policy that is associated to the Trust Product resource. */
policySid?: string;

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

export interface TrustProductsListInstancePageOptions {
/** The verification status of the Customer-Profile resource. */
/** The verification status of the Trust Product resource. */
status?: TrustProductsStatus;
/** The string that you assigned to describe the resource. */
friendlyName?: string;
/** The unique string of a policy that is associated to the Customer-Profile resource. */
/** The unique string of a policy that is associated to the Trust Product resource. */
policySid?: string;

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

/**
* The unique string that we created to identify the Customer-Profile resource.
* The unique string that we created to identify the Trust Product resource.
*/
sid: string;
/**
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Customer-Profile resource.
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Trust Product resource.
*/
accountSid: string;
/**
* The unique string of a policy that is associated to the Customer-Profile resource.
* The unique string of the policy that is associated with the Trust Product resource.
*/

@@ -201,7 +201,7 @@ policySid: string;

/**
* The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
* The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format until which the resource will be valid.
*/
validUntil: Date;
/**
* The email address that will receive updates when the Customer-Profile resource changes status.
* The email address that will receive updates when the Trust Product resource changes status.
*/

@@ -222,7 +222,7 @@ email: string;

/**
* The absolute URL of the Customer-Profile resource.
* The absolute URL of the Trust Product resource.
*/
url: string;
/**
* The URLs of the Assigned Items of the Customer-Profile resource.
* The URLs of the Assigned Items of the Trust Product resource.
*/

@@ -229,0 +229,0 @@ links: Record<string, string>;

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

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

@@ -93,4 +92,2 @@ import Messaging from "./Messaging";

_lookups?: Lookups;
/** (Twilio.Media) - media domain */
_media?: Media;
/** (Twilio.PreviewMessaging) - previewMessaging domain */

@@ -178,4 +175,2 @@ _previewMessaging?: PreviewMessaging;

get lookups(): Lookups;
/** Getter for (Twilio.Media) domain */
get media(): Media;
/** Getter for (Twilio.PreviewMessaging) domain */

@@ -182,0 +177,0 @@ get previewMessaging(): PreviewMessaging;

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

this.lookups;
this.media;
this.previewMessaging;

@@ -132,6 +131,2 @@ this.messaging;

}
/** Getter for (Twilio.Media) domain */
get media() {
return this._media ?? (this._media = new (require("./Media"))(this));
}
/** Getter for (Twilio.PreviewMessaging) domain */

@@ -138,0 +133,0 @@ get previewMessaging() {

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

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

Sorry, the diff of this file is too big to display

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