Socket
Socket
Sign inDemoInstall

twilio

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio - npm Package Compare versions

Comparing version 4.18.1 to 4.19.0

lib/rest/accounts/v1/safelist.d.ts

5

lib/rest/accounts/V1.d.ts

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

import { CredentialListInstance } from "./v1/credential";
import { SafelistListInstance } from "./v1/safelist";
import { SecondaryAuthTokenListInstance } from "./v1/secondaryAuthToken";

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

protected _credentials?: CredentialListInstance;
/** safelist - { Twilio.Accounts.V1.SafelistListInstance } resource */
protected _safelist?: SafelistListInstance;
/** secondaryAuthToken - { Twilio.Accounts.V1.SecondaryAuthTokenListInstance } resource */

@@ -25,4 +28,6 @@ protected _secondaryAuthToken?: SecondaryAuthTokenListInstance;

get credentials(): CredentialListInstance;
/** Getter for safelist resource */
get safelist(): SafelistListInstance;
/** Getter for secondaryAuthToken resource */
get secondaryAuthToken(): SecondaryAuthTokenListInstance;
}

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

const credential_1 = require("./v1/credential");
const safelist_1 = require("./v1/safelist");
const secondaryAuthToken_1 = require("./v1/secondaryAuthToken");

@@ -44,2 +45,7 @@ class V1 extends Version_1.default {

}
/** Getter for safelist resource */
get safelist() {
this._safelist = this._safelist || (0, safelist_1.SafelistListInstance)(this);
return this._safelist;
}
/** Getter for secondaryAuthToken resource */

@@ -46,0 +52,0 @@ get secondaryAuthToken() {

5

lib/rest/api/V2010.d.ts
import ApiBase from "../ApiBase";
import Version from "../../base/Version";
import { AccountListInstance } from "./v2010/account";
import { SafelistListInstance } from "./v2010/safelist";
import { AccountContext } from "./v2010/account";

@@ -15,4 +14,2 @@ export default class V2010 extends Version {

protected _accounts?: AccountListInstance;
/** safelist - { Twilio.Api.V2010.SafelistListInstance } resource */
protected _safelist?: SafelistListInstance;
/** account - { Twilio.Api.V2010.AccountContext } resource */

@@ -22,6 +19,4 @@ protected _account?: AccountContext;

get accounts(): AccountListInstance;
/** Getter for safelist resource */
get safelist(): SafelistListInstance;
/** Getter for account resource */
get account(): AccountContext;
}

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

const account_1 = require("./v2010/account");
const safelist_1 = require("./v2010/safelist");
class V2010 extends Version_1.default {

@@ -37,7 +36,2 @@ /**

}
/** Getter for safelist resource */
get safelist() {
this._safelist = this._safelist || (0, safelist_1.SafelistListInstance)(this);
return this._safelist;
}
/** Getter for account resource */

@@ -44,0 +38,0 @@ get account() {

2

lib/rest/api/v2010/account/conference/participant.d.ts

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

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

citrix_voice_vdi: any;
offline_config: any;
}

@@ -292,2 +293,6 @@ export declare class ConfigurationInstance {

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

@@ -364,2 +369,3 @@ /**

citrixVoiceVdi: any;
offlineConfig: any;
};

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

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

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

@@ -177,2 +178,3 @@ }

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

@@ -179,0 +181,0 @@ }

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

/**
* Options to pass to fetch a TranscriptInstance
*/
export interface TranscriptContextFetchOptions {
/** Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript. */
redacted?: boolean;
}
/**
* Options to pass to create a TranscriptInstance

@@ -133,11 +126,2 @@ */

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

@@ -163,3 +147,3 @@ */

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

@@ -267,11 +251,2 @@ * Provide a user-friendly representation

/**
* Fetch a TranscriptInstance
*
* @param params - Parameter for request
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed TranscriptInstance
*/
fetch(params: TranscriptContextFetchOptions, callback?: (error: Error | null, item?: TranscriptInstance) => any): Promise<TranscriptInstance>;
/**
* Access the media.

@@ -278,0 +253,0 @@ */

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

}
fetch(params, callback) {
if (params instanceof Function) {
callback = params;
params = {};
}
else {
params = params || {};
}
let data = {};
if (params["redacted"] !== undefined)
data["Redacted"] = serialize.bool(params["redacted"]);
const headers = {};
fetch(callback) {
const instance = this;

@@ -80,4 +69,2 @@ let operationVersion = instance._version, operationPromise = operationVersion.fetch({

method: "get",
params: data,
headers,
});

@@ -137,4 +124,11 @@ operationPromise = operationPromise.then((payload) => new TranscriptInstance(operationVersion, payload, instance._solution.sid));

}
fetch(params, callback) {
return this._proxy.fetch(params, callback);
/**
* Fetch a TranscriptInstance
*
* @param callback - Callback to handle processed record
*
* @returns Resolves to processed TranscriptInstance
*/
fetch(callback) {
return this._proxy.fetch(callback);
}

@@ -141,0 +135,0 @@ /**

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

export interface MediaContextFetchOptions {
/** Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media. */
/** Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media. */
redacted?: boolean;

@@ -11,0 +11,0 @@ }

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

export interface OperatorResultContextFetchOptions {
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
redacted?: boolean;

@@ -19,3 +19,3 @@ }

export interface OperatorResultListInstanceEachOptions {
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
redacted?: boolean;

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

export interface OperatorResultListInstanceOptions {
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
redacted?: boolean;

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

export interface OperatorResultListInstancePageOptions {
/** Grant access to PII redacted/unredacted Language Understanding operator. The default is True. */
/** Grant access to PII redacted/unredacted Language Understanding operator. If redaction is enabled, the default is True. */
redacted?: boolean;

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

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

export interface SentenceListInstanceEachOptions {
/** Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. */
/** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
redacted?: boolean;

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

export interface SentenceListInstanceOptions {
/** Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. */
/** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
redacted?: boolean;

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

export interface SentenceListInstancePageOptions {
/** Grant access to PII Redacted/Unredacted Sentences. The default is `true` to access redacted sentences. */
/** Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. */
redacted?: boolean;

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

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

sms_pumping_risk: any;
disposable_phone_number_risk: any;
phone_number_quality_score: any;
url: string;

@@ -158,5 +158,5 @@ }

/**
* An object that contains information on if a mobile phone number could be a disposable or burner number.
* An object that contains information of a mobile phone number quality score. Quality score will return a risk score about the phone number.
*/
disposablePhoneNumberRisk: any;
phoneNumberQualityScore: any;
/**

@@ -204,3 +204,3 @@ * The absolute URL of the resource.

smsPumpingRisk: any;
disposablePhoneNumberRisk: any;
phoneNumberQualityScore: any;
url: string;

@@ -207,0 +207,0 @@ };

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

this.smsPumpingRisk = payload.sms_pumping_risk;
this.disposablePhoneNumberRisk = payload.disposable_phone_number_risk;
this.phoneNumberQualityScore = payload.phone_number_quality_score;
this.url = payload.url;

@@ -142,3 +142,3 @@ this._solution = { phoneNumber: phoneNumber || this.phoneNumber };

smsPumpingRisk: this.smsPumpingRisk,
disposablePhoneNumberRisk: this.disposablePhoneNumberRisk,
phoneNumberQualityScore: this.phoneNumberQualityScore,
url: this.url,

@@ -145,0 +145,0 @@ };

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

messageFlow: string;
/** Message samples, at least 1 and up to 5 sample messages (at least 2 for sole proprietor), >=20 chars, <=1024 chars each. */
/** 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>;

@@ -169,3 +169,3 @@ /** A2P Campaign Use Case. Examples: [ 2FA, EMERGENCY, MARKETING..] */

/**
* Message samples, at least 1 and up to 5 sample messages (at least 2 for starter/sole proprietor), >=20 chars, <=1024 chars each.
* 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.
*/

@@ -172,0 +172,0 @@ messageSamples: Array<string>;

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

taskChannel?: string;
/** The task\\\'s new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can\\\'t be in the future. */
virtualStartTime?: Date;
}

@@ -47,2 +49,4 @@ /**

attributes?: string;
/** The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can\\\'t be in the future. */
virtualStartTime?: Date;
}

@@ -67,3 +71,3 @@ /**

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

@@ -99,3 +103,3 @@ /** Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. */

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

@@ -127,3 +131,3 @@ /** Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. */

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

@@ -236,2 +240,3 @@ /** Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. */

links: Record<string, string>;
virtual_start_time: Date;
}

@@ -324,2 +329,6 @@ export declare class TaskInstance {

links: Record<string, string>;
/**
* The date and time in GMT indicating the ordering for routing of the Task specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
*/
virtualStartTime: Date;
private get _proxy();

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

links: Record<string, string>;
virtualStartTime: Date;
};

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

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

data["TaskChannel"] = params["taskChannel"];
if (params["virtualStartTime"] !== undefined)
data["VirtualStartTime"] = serialize.iso8601DateTime(params["virtualStartTime"]);
const headers = {};

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

this.links = payload.links;
this.virtualStartTime = deserialize.iso8601DateTime(payload.virtual_start_time);
this._solution = { workspaceSid, sid: sid || this.sid };

@@ -207,2 +210,3 @@ }

links: this.links,
virtualStartTime: this.virtualStartTime,
};

@@ -245,2 +249,4 @@ }

data["Attributes"] = params["attributes"];
if (params["virtualStartTime"] !== undefined)
data["VirtualStartTime"] = serialize.iso8601DateTime(params["virtualStartTime"]);
const headers = {};

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

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

@@ -33,5 +33,5 @@ "contributors": [

"devDependencies": {
"@babel/preset-env": "^7.20.2",
"@babel/preset-env": "^7.23.0",
"@babel/preset-typescript": "^7.18.6",
"@types/jest": "^29.2.5",
"@types/jest": "^29.5.5",
"@types/jsonwebtoken": "^9.0.0",

@@ -44,3 +44,3 @@ "@types/node": "^18.11.18",

"express": "^4.17.1",
"jest": "^29.3.1",
"jest": "^29.5.5",
"jshint": "^2.11.0",

@@ -51,3 +51,3 @@ "mock-fs": "^5.2.0",

"prettier": "^2.7.1",
"ts-jest": "^29.0.5",
"ts-jest": "^29.1.1",
"typescript": "^4.7.2",

@@ -54,0 +54,0 @@ "typedoc": "^0.23.21"

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