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.7.1 to 4.7.2

lib/rest/content/v1/legacyContent.d.ts

5

lib/rest/content/V1.d.ts
import ContentBase from "../ContentBase";
import Version from "../../base/Version";
import { ContentListInstance } from "./v1/content";
import { LegacyContentListInstance } from "./v1/legacyContent";
export default class V1 extends Version {

@@ -13,4 +14,8 @@ /**

protected _contents?: ContentListInstance;
/** legacyContents - { Twilio.Content.V1.LegacyContentListInstance } resource */
protected _legacyContents?: LegacyContentListInstance;
/** Getter for contents resource */
get contents(): ContentListInstance;
/** Getter for legacyContents resource */
get legacyContents(): LegacyContentListInstance;
}

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

const content_1 = require("./v1/content");
const legacyContent_1 = require("./v1/legacyContent");
class V1 extends Version_1.default {

@@ -36,3 +37,9 @@ /**

}
/** Getter for legacyContents resource */
get legacyContents() {
this._legacyContents =
this._legacyContents || (0, legacyContent_1.LegacyContentListInstance)(this);
return this._legacyContents;
}
}
exports.default = V1;

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

import { FlexFlowListInstance } from "./v1/flexFlow";
import { InsightsAssessmentsCommentListInstance } from "./v1/insightsAssessmentsComment";
import { InsightsQuestionnairesListInstance } from "./v1/insightsQuestionnaires";
import { InsightsQuestionnairesCategoryListInstance } from "./v1/insightsQuestionnairesCategory";
import { InsightsQuestionnairesQuestionListInstance } from "./v1/insightsQuestionnairesQuestion";
import { InsightsSegmentsListInstance } from "./v1/insightsSegments";
import { InsightsSessionListInstance } from "./v1/insightsSession";

@@ -31,2 +34,6 @@ import { InsightsSettingsAnswerSetsListInstance } from "./v1/insightsSettingsAnswerSets";

protected _flexFlow?: FlexFlowListInstance;
/** insightsAssessmentsComment - { Twilio.FlexApi.V1.InsightsAssessmentsCommentListInstance } resource */
protected _insightsAssessmentsComment?: InsightsAssessmentsCommentListInstance;
/** insightsQuestionnaires - { Twilio.FlexApi.V1.InsightsQuestionnairesListInstance } resource */
protected _insightsQuestionnaires?: InsightsQuestionnairesListInstance;
/** insightsQuestionnairesCategory - { Twilio.FlexApi.V1.InsightsQuestionnairesCategoryListInstance } resource */

@@ -36,2 +43,4 @@ protected _insightsQuestionnairesCategory?: InsightsQuestionnairesCategoryListInstance;

protected _insightsQuestionnairesQuestion?: InsightsQuestionnairesQuestionListInstance;
/** insightsSegments - { Twilio.FlexApi.V1.InsightsSegmentsListInstance } resource */
protected _insightsSegments?: InsightsSegmentsListInstance;
/** insightsSession - { Twilio.FlexApi.V1.InsightsSessionListInstance } resource */

@@ -57,2 +66,6 @@ protected _insightsSession?: InsightsSessionListInstance;

get flexFlow(): FlexFlowListInstance;
/** Getter for insightsAssessmentsComment resource */
get insightsAssessmentsComment(): InsightsAssessmentsCommentListInstance;
/** Getter for insightsQuestionnaires resource */
get insightsQuestionnaires(): InsightsQuestionnairesListInstance;
/** Getter for insightsQuestionnairesCategory resource */

@@ -62,2 +75,4 @@ get insightsQuestionnairesCategory(): InsightsQuestionnairesCategoryListInstance;

get insightsQuestionnairesQuestion(): InsightsQuestionnairesQuestionListInstance;
/** Getter for insightsSegments resource */
get insightsSegments(): InsightsSegmentsListInstance;
/** Getter for insightsSession resource */

@@ -64,0 +79,0 @@ get insightsSession(): InsightsSessionListInstance;

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

const flexFlow_1 = require("./v1/flexFlow");
const insightsAssessmentsComment_1 = require("./v1/insightsAssessmentsComment");
const insightsQuestionnaires_1 = require("./v1/insightsQuestionnaires");
const insightsQuestionnairesCategory_1 = require("./v1/insightsQuestionnairesCategory");
const insightsQuestionnairesQuestion_1 = require("./v1/insightsQuestionnairesQuestion");
const insightsSegments_1 = require("./v1/insightsSegments");
const insightsSession_1 = require("./v1/insightsSession");

@@ -63,2 +66,15 @@ const insightsSettingsAnswerSets_1 = require("./v1/insightsSettingsAnswerSets");

}
/** Getter for insightsAssessmentsComment resource */
get insightsAssessmentsComment() {
this._insightsAssessmentsComment =
this._insightsAssessmentsComment ||
(0, insightsAssessmentsComment_1.InsightsAssessmentsCommentListInstance)(this);
return this._insightsAssessmentsComment;
}
/** Getter for insightsQuestionnaires resource */
get insightsQuestionnaires() {
this._insightsQuestionnaires =
this._insightsQuestionnaires || (0, insightsQuestionnaires_1.InsightsQuestionnairesListInstance)(this);
return this._insightsQuestionnaires;
}
/** Getter for insightsQuestionnairesCategory resource */

@@ -78,2 +94,8 @@ get insightsQuestionnairesCategory() {

}
/** Getter for insightsSegments resource */
get insightsSegments() {
this._insightsSegments =
this._insightsSegments || (0, insightsSegments_1.InsightsSegmentsListInstance)(this);
return this._insightsSegments;
}
/** Getter for insightsSession resource */

@@ -80,0 +102,0 @@ get insightsSession() {

/// <reference types="node" />
import { inspect, InspectOptions } from "util";
import Page, { TwilioResponsePayload } from "../../../base/Page";
import Response from "../../../http/response";
import V1 from "../V1";

@@ -29,2 +31,41 @@ /**

}
/**
* Options to pass to each
*/
export interface InsightsQuestionnairesCategoryListInstanceEachOptions {
/** The Token HTTP request header */
token?: string;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Function to process each record. If this and a positional callback are passed, this one will be used */
callback?: (item: InsightsQuestionnairesCategoryInstance, done: (err?: Error) => void) => void;
/** Function to be called upon completion of streaming */
done?: Function;
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
limit?: number;
}
/**
* Options to pass to list
*/
export interface InsightsQuestionnairesCategoryListInstanceOptions {
/** The Token HTTP request header */
token?: string;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
limit?: number;
}
/**
* Options to pass to page
*/
export interface InsightsQuestionnairesCategoryListInstancePageOptions {
/** The Token HTTP request header */
token?: string;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Page Number, this value is simply for client state */
pageNumber?: number;
/** PageToken provided by the API */
pageToken?: string;
}
export interface InsightsQuestionnairesCategoryContext {

@@ -81,2 +122,5 @@ /**

}
interface InsightsQuestionnairesCategoryPayload extends TwilioResponsePayload {
categories: InsightsQuestionnairesCategoryResource[];
}
interface InsightsQuestionnairesCategoryResource {

@@ -164,2 +208,52 @@ account_sid: string;

/**
* Streams InsightsQuestionnairesCategoryInstance records from the API.
*
* This operation lazily loads records as efficiently as possible until the limit
* is reached.
*
* The results are passed into the callback function, so this operation is memory
* efficient.
*
* If a function is passed as the first argument, it will be used as the callback
* function.
*
* @param { InsightsQuestionnairesCategoryListInstanceEachOptions } [params] - Options for request
* @param { function } [callback] - Function to process each record
*/
each(callback?: (item: InsightsQuestionnairesCategoryInstance, done: (err?: Error) => void) => void): void;
each(params: InsightsQuestionnairesCategoryListInstanceEachOptions, callback?: (item: InsightsQuestionnairesCategoryInstance, done: (err?: Error) => void) => void): void;
/**
* Retrieve a single target page of InsightsQuestionnairesCategoryInstance records from the API.
*
* The request is executed immediately.
*
* @param { string } [targetUrl] - API-generated URL for the requested results page
* @param { function } [callback] - Callback to handle list of records
*/
getPage(targetUrl: string, callback?: (error: Error | null, items: InsightsQuestionnairesCategoryPage) => any): Promise<InsightsQuestionnairesCategoryPage>;
/**
* Lists InsightsQuestionnairesCategoryInstance records from the API as a list.
*
* If a function is passed as the first argument, it will be used as the callback
* function.
*
* @param { InsightsQuestionnairesCategoryListInstanceOptions } [params] - Options for request
* @param { function } [callback] - Callback to handle list of records
*/
list(callback?: (error: Error | null, items: InsightsQuestionnairesCategoryInstance[]) => any): Promise<InsightsQuestionnairesCategoryInstance[]>;
list(params: InsightsQuestionnairesCategoryListInstanceOptions, callback?: (error: Error | null, items: InsightsQuestionnairesCategoryInstance[]) => any): Promise<InsightsQuestionnairesCategoryInstance[]>;
/**
* Retrieve a single page of InsightsQuestionnairesCategoryInstance records from the API.
*
* The request is executed immediately.
*
* If a function is passed as the first argument, it will be used as the callback
* function.
*
* @param { InsightsQuestionnairesCategoryListInstancePageOptions } [params] - Options for request
* @param { function } [callback] - Callback to handle list of records
*/
page(callback?: (error: Error | null, items: InsightsQuestionnairesCategoryPage) => any): Promise<InsightsQuestionnairesCategoryPage>;
page(params: InsightsQuestionnairesCategoryListInstancePageOptions, callback?: (error: Error | null, items: InsightsQuestionnairesCategoryPage) => any): Promise<InsightsQuestionnairesCategoryPage>;
/**
* Provide a user-friendly representation

@@ -171,2 +265,19 @@ */

export declare function InsightsQuestionnairesCategoryListInstance(version: V1): InsightsQuestionnairesCategoryListInstance;
export declare class InsightsQuestionnairesCategoryPage extends Page<V1, InsightsQuestionnairesCategoryPayload, InsightsQuestionnairesCategoryResource, InsightsQuestionnairesCategoryInstance> {
/**
* Initialize the InsightsQuestionnairesCategoryPage
*
* @param version - Version of the resource
* @param response - Response from the API
* @param solution - Path solution
*/
constructor(version: V1, response: Response<string>, solution: InsightsQuestionnairesCategorySolution);
/**
* Build an instance of InsightsQuestionnairesCategoryInstance
*
* @param payload - Payload response from the API
*/
getInstance(payload: InsightsQuestionnairesCategoryResource): InsightsQuestionnairesCategoryInstance;
[inspect.custom](depth: any, options: InspectOptions): string;
}
export {};

69

lib/rest/flexApi/v1/insightsQuestionnairesCategory.js

@@ -15,5 +15,9 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InsightsQuestionnairesCategoryListInstance = exports.InsightsQuestionnairesCategoryInstance = exports.InsightsQuestionnairesCategoryContextImpl = void 0;
exports.InsightsQuestionnairesCategoryPage = exports.InsightsQuestionnairesCategoryListInstance = exports.InsightsQuestionnairesCategoryInstance = exports.InsightsQuestionnairesCategoryContextImpl = void 0;
const util_1 = require("util");
const Page_1 = __importDefault(require("../../../base/Page"));
const deserialize = require("../../../base/deserialize");

@@ -160,2 +164,41 @@ const serialize = require("../../../base/serialize");

};
instance.page = function page(params, callback) {
if (params instanceof Function) {
callback = params;
params = {};
}
else {
params = params || {};
}
let data = {};
if (params["pageSize"] !== undefined)
data["PageSize"] = params["pageSize"];
if (params.pageNumber !== undefined)
data["Page"] = params.pageNumber;
if (params.pageToken !== undefined)
data["PageToken"] = params.pageToken;
const headers = {};
if (params["token"] !== undefined)
headers["Token"] = params["token"];
let operationVersion = version, operationPromise = operationVersion.page({
uri: instance._uri,
method: "get",
params: data,
headers,
});
operationPromise = operationPromise.then((payload) => new InsightsQuestionnairesCategoryPage(operationVersion, payload, instance._solution));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
return operationPromise;
};
instance.each = instance._version.each;
instance.list = instance._version.list;
instance.getPage = function getPage(targetUrl, callback) {
const operationPromise = instance._version._domain.twilio.request({
method: "get",
uri: targetUrl,
});
let pagePromise = operationPromise.then((payload) => new InsightsQuestionnairesCategoryPage(instance._version, payload, instance._solution));
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
return pagePromise;
};
instance.toJSON = function toJSON() {

@@ -170,1 +213,25 @@ return instance._solution;

exports.InsightsQuestionnairesCategoryListInstance = InsightsQuestionnairesCategoryListInstance;
class InsightsQuestionnairesCategoryPage extends Page_1.default {
/**
* Initialize the InsightsQuestionnairesCategoryPage
*
* @param version - Version of the resource
* @param response - Response from the API
* @param solution - Path solution
*/
constructor(version, response, solution) {
super(version, response, solution);
}
/**
* Build an instance of InsightsQuestionnairesCategoryInstance
*
* @param payload - Payload response from the API
*/
getInstance(payload) {
return new InsightsQuestionnairesCategoryInstance(this._version, payload);
}
[util_1.inspect.custom](depth, options) {
return (0, util_1.inspect)(this.toJSON(), options);
}
}
exports.InsightsQuestionnairesCategoryPage = InsightsQuestionnairesCategoryPage;
/// <reference types="node" />
import { inspect, InspectOptions } from "util";
import Page, { TwilioResponsePayload } from "../../../base/Page";
import Response from "../../../http/response";
import V1 from "../V1";

@@ -15,8 +17,2 @@ /**

export interface InsightsQuestionnairesQuestionContextUpdateOptions {
/** The question. */
question: string;
/** The description for the question. */
description: string;
/** The answer_set for the question. */
answerSetId: string;
/** The flag to enable for disable NA for answer. */

@@ -28,2 +24,8 @@ allowNa: boolean;

categoryId?: string;
/** The question. */
question?: string;
/** The description for the question. */
description?: string;
/** The answer_set for the question. */
answerSetId?: string;
}

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

}
/**
* Options to pass to each
*/
export interface InsightsQuestionnairesQuestionListInstanceEachOptions {
/** The Token HTTP request header */
token?: string;
/** The list of category IDs */
categoryId?: Array<string>;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Function to process each record. If this and a positional callback are passed, this one will be used */
callback?: (item: InsightsQuestionnairesQuestionInstance, done: (err?: Error) => void) => void;
/** Function to be called upon completion of streaming */
done?: Function;
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
limit?: number;
}
/**
* Options to pass to list
*/
export interface InsightsQuestionnairesQuestionListInstanceOptions {
/** The Token HTTP request header */
token?: string;
/** The list of category IDs */
categoryId?: Array<string>;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
limit?: number;
}
/**
* Options to pass to page
*/
export interface InsightsQuestionnairesQuestionListInstancePageOptions {
/** The Token HTTP request header */
token?: string;
/** The list of category IDs */
categoryId?: Array<string>;
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
pageSize?: number;
/** Page Number, this value is simply for client state */
pageNumber?: number;
/** PageToken provided by the API */
pageToken?: string;
}
export interface InsightsQuestionnairesQuestionContext {

@@ -99,2 +146,5 @@ /**

}
interface InsightsQuestionnairesQuestionPayload extends TwilioResponsePayload {
questions: InsightsQuestionnairesQuestionResource[];
}
interface InsightsQuestionnairesQuestionResource {

@@ -108,2 +158,3 @@ account_sid: string;

allow_na: boolean;
usage: number;
url: string;

@@ -144,2 +195,6 @@ }

allowNa: boolean;
/**
* Integer value that tells a particular question is used by how many questionnaires
*/
usage: number;
url: string;

@@ -186,2 +241,3 @@ private get _proxy();

allowNa: boolean;
usage: number;
url: string;

@@ -209,2 +265,52 @@ };

/**
* Streams InsightsQuestionnairesQuestionInstance records from the API.
*
* This operation lazily loads records as efficiently as possible until the limit
* is reached.
*
* The results are passed into the callback function, so this operation is memory
* efficient.
*
* If a function is passed as the first argument, it will be used as the callback
* function.
*
* @param { InsightsQuestionnairesQuestionListInstanceEachOptions } [params] - Options for request
* @param { function } [callback] - Function to process each record
*/
each(callback?: (item: InsightsQuestionnairesQuestionInstance, done: (err?: Error) => void) => void): void;
each(params: InsightsQuestionnairesQuestionListInstanceEachOptions, callback?: (item: InsightsQuestionnairesQuestionInstance, done: (err?: Error) => void) => void): void;
/**
* Retrieve a single target page of InsightsQuestionnairesQuestionInstance records from the API.
*
* The request is executed immediately.
*
* @param { string } [targetUrl] - API-generated URL for the requested results page
* @param { function } [callback] - Callback to handle list of records
*/
getPage(targetUrl: string, callback?: (error: Error | null, items: InsightsQuestionnairesQuestionPage) => any): Promise<InsightsQuestionnairesQuestionPage>;
/**
* Lists InsightsQuestionnairesQuestionInstance records from the API as a list.
*
* If a function is passed as the first argument, it will be used as the callback
* function.
*
* @param { InsightsQuestionnairesQuestionListInstanceOptions } [params] - Options for request
* @param { function } [callback] - Callback to handle list of records
*/
list(callback?: (error: Error | null, items: InsightsQuestionnairesQuestionInstance[]) => any): Promise<InsightsQuestionnairesQuestionInstance[]>;
list(params: InsightsQuestionnairesQuestionListInstanceOptions, callback?: (error: Error | null, items: InsightsQuestionnairesQuestionInstance[]) => any): Promise<InsightsQuestionnairesQuestionInstance[]>;
/**
* Retrieve a single page of InsightsQuestionnairesQuestionInstance records from the API.
*
* The request is executed immediately.
*
* If a function is passed as the first argument, it will be used as the callback
* function.
*
* @param { InsightsQuestionnairesQuestionListInstancePageOptions } [params] - Options for request
* @param { function } [callback] - Callback to handle list of records
*/
page(callback?: (error: Error | null, items: InsightsQuestionnairesQuestionPage) => any): Promise<InsightsQuestionnairesQuestionPage>;
page(params: InsightsQuestionnairesQuestionListInstancePageOptions, callback?: (error: Error | null, items: InsightsQuestionnairesQuestionPage) => any): Promise<InsightsQuestionnairesQuestionPage>;
/**
* Provide a user-friendly representation

@@ -216,2 +322,19 @@ */

export declare function InsightsQuestionnairesQuestionListInstance(version: V1): InsightsQuestionnairesQuestionListInstance;
export declare class InsightsQuestionnairesQuestionPage extends Page<V1, InsightsQuestionnairesQuestionPayload, InsightsQuestionnairesQuestionResource, InsightsQuestionnairesQuestionInstance> {
/**
* Initialize the InsightsQuestionnairesQuestionPage
*
* @param version - Version of the resource
* @param response - Response from the API
* @param solution - Path solution
*/
constructor(version: V1, response: Response<string>, solution: InsightsQuestionnairesQuestionSolution);
/**
* Build an instance of InsightsQuestionnairesQuestionInstance
*
* @param payload - Payload response from the API
*/
getInstance(payload: InsightsQuestionnairesQuestionResource): InsightsQuestionnairesQuestionInstance;
[inspect.custom](depth: any, options: InspectOptions): string;
}
export {};

@@ -15,5 +15,9 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InsightsQuestionnairesQuestionListInstance = exports.InsightsQuestionnairesQuestionInstance = exports.InsightsQuestionnairesQuestionContextImpl = void 0;
exports.InsightsQuestionnairesQuestionPage = exports.InsightsQuestionnairesQuestionListInstance = exports.InsightsQuestionnairesQuestionInstance = exports.InsightsQuestionnairesQuestionContextImpl = void 0;
const util_1 = require("util");
const Page_1 = __importDefault(require("../../../base/Page"));
const deserialize = require("../../../base/deserialize");

@@ -57,11 +61,2 @@ const serialize = require("../../../base/serialize");

}
if (params["question"] === null || params["question"] === undefined) {
throw new Error("Required parameter \"params['question']\" missing.");
}
if (params["description"] === null || params["description"] === undefined) {
throw new Error("Required parameter \"params['description']\" missing.");
}
if (params["answerSetId"] === null || params["answerSetId"] === undefined) {
throw new Error("Required parameter \"params['answerSetId']\" missing.");
}
if (params["allowNa"] === null || params["allowNa"] === undefined) {

@@ -71,8 +66,11 @@ throw new Error("Required parameter \"params['allowNa']\" missing.");

let data = {};
data["Question"] = params["question"];
data["Description"] = params["description"];
data["AnswerSetId"] = params["answerSetId"];
data["AllowNa"] = serialize.bool(params["allowNa"]);
if (params["categoryId"] !== undefined)
data["CategoryId"] = params["categoryId"];
if (params["question"] !== undefined)
data["Question"] = params["question"];
if (params["description"] !== undefined)
data["Description"] = params["description"];
if (params["answerSetId"] !== undefined)
data["AnswerSetId"] = params["answerSetId"];
const headers = {};

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

this.allowNa = payload.allow_na;
this.usage = deserialize.integer(payload.usage);
this.url = payload.url;

@@ -146,2 +145,3 @@ this._solution = { questionId: questionId || this.questionId };

allowNa: this.allowNa,
usage: this.usage,
url: this.url,

@@ -202,2 +202,43 @@ };

};
instance.page = function page(params, callback) {
if (params instanceof Function) {
callback = params;
params = {};
}
else {
params = params || {};
}
let data = {};
if (params["categoryId"] !== undefined)
data["CategoryId"] = serialize.map(params["categoryId"], (e) => e);
if (params["pageSize"] !== undefined)
data["PageSize"] = params["pageSize"];
if (params.pageNumber !== undefined)
data["Page"] = params.pageNumber;
if (params.pageToken !== undefined)
data["PageToken"] = params.pageToken;
const headers = {};
if (params["token"] !== undefined)
headers["Token"] = params["token"];
let operationVersion = version, operationPromise = operationVersion.page({
uri: instance._uri,
method: "get",
params: data,
headers,
});
operationPromise = operationPromise.then((payload) => new InsightsQuestionnairesQuestionPage(operationVersion, payload, instance._solution));
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
return operationPromise;
};
instance.each = instance._version.each;
instance.list = instance._version.list;
instance.getPage = function getPage(targetUrl, callback) {
const operationPromise = instance._version._domain.twilio.request({
method: "get",
uri: targetUrl,
});
let pagePromise = operationPromise.then((payload) => new InsightsQuestionnairesQuestionPage(instance._version, payload, instance._solution));
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
return pagePromise;
};
instance.toJSON = function toJSON() {

@@ -212,1 +253,25 @@ return instance._solution;

exports.InsightsQuestionnairesQuestionListInstance = InsightsQuestionnairesQuestionListInstance;
class InsightsQuestionnairesQuestionPage extends Page_1.default {
/**
* Initialize the InsightsQuestionnairesQuestionPage
*
* @param version - Version of the resource
* @param response - Response from the API
* @param solution - Path solution
*/
constructor(version, response, solution) {
super(version, response, solution);
}
/**
* Build an instance of InsightsQuestionnairesQuestionInstance
*
* @param payload - Payload response from the API
*/
getInstance(payload) {
return new InsightsQuestionnairesQuestionInstance(this._version, payload);
}
[util_1.inspect.custom](depth, options) {
return (0, util_1.inspect)(this.toJSON(), options);
}
}
exports.InsightsQuestionnairesQuestionPage = InsightsQuestionnairesQuestionPage;

4

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

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

export interface InsightsSessionContextCreateOptions {
/** The Token HTTP request header */
token?: string;
/** The Authorization HTTP request header */
authorization?: string;
}

@@ -12,0 +12,0 @@ export interface InsightsSessionContext {

@@ -36,4 +36,4 @@ "use strict";

const headers = {};
if (params["token"] !== undefined)
headers["Token"] = params["token"];
if (params["authorization"] !== undefined)
headers["Authorization"] = params["authorization"];
const instance = this;

@@ -40,0 +40,0 @@ let operationVersion = instance._version, operationPromise = operationVersion.create({

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

export interface InsightsUserRolesContextFetchOptions {
/** The Token HTTP request header */
token?: string;
/** The Authorization HTTP request header */
authorization?: string;
}

@@ -12,0 +12,0 @@ export interface InsightsUserRolesContext {

@@ -36,4 +36,4 @@ "use strict";

const headers = {};
if (params["token"] !== undefined)
headers["Token"] = params["token"];
if (params["authorization"] !== undefined)
headers["Authorization"] = params["authorization"];
const instance = this;

@@ -40,0 +40,0 @@ let operationVersion = instance._version, operationPromise = operationVersion.fetch({

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

identity_match: any;
sms_pumping_risk: any;
disposable_phone_number_risk: any;
url: string;

@@ -145,2 +147,10 @@ }

/**
* An object that contains information on if a phone number has been currently or previously blocked by Verify Fraud Guard for receiving malicious SMS pumping traffic as well as other signals associated with risky carriers and low conversion rates.
*/
smsPumpingRisk: any;
/**
* An object that contains information on if a mobile phone number could be a disposable or burner number.
*/
disposablePhoneNumberRisk: any;
/**
* The absolute URL of the resource.

@@ -185,2 +195,4 @@ */

identityMatch: any;
smsPumpingRisk: any;
disposablePhoneNumberRisk: any;
url: string;

@@ -187,0 +199,0 @@ };

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

this.identityMatch = payload.identity_match;
this.smsPumpingRisk = payload.sms_pumping_risk;
this.disposablePhoneNumberRisk = payload.disposable_phone_number_risk;
this.url = payload.url;

@@ -135,2 +137,4 @@ this._solution = { phoneNumber: phoneNumber || this.phoneNumber };

identityMatch: this.identityMatch,
smsPumpingRisk: this.smsPumpingRisk,
disposablePhoneNumberRisk: this.disposablePhoneNumberRisk,
url: this.url,

@@ -137,0 +141,0 @@ };

import MicrovisorBase from "../MicrovisorBase";
import Version from "../../base/Version";
import { AccountConfigListInstance } from "./v1/accountConfig";
import { AccountSecretListInstance } from "./v1/accountSecret";
import { AppListInstance } from "./v1/app";

@@ -12,2 +14,6 @@ import { DeviceListInstance } from "./v1/device";

constructor(domain: MicrovisorBase);
/** accountConfigs - { Twilio.Microvisor.V1.AccountConfigListInstance } resource */
protected _accountConfigs?: AccountConfigListInstance;
/** accountSecrets - { Twilio.Microvisor.V1.AccountSecretListInstance } resource */
protected _accountSecrets?: AccountSecretListInstance;
/** apps - { Twilio.Microvisor.V1.AppListInstance } resource */

@@ -17,2 +23,6 @@ protected _apps?: AppListInstance;

protected _devices?: DeviceListInstance;
/** Getter for accountConfigs resource */
get accountConfigs(): AccountConfigListInstance;
/** Getter for accountSecrets resource */
get accountSecrets(): AccountSecretListInstance;
/** Getter for apps resource */

@@ -19,0 +29,0 @@ get apps(): AppListInstance;

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

const Version_1 = __importDefault(require("../../base/Version"));
const accountConfig_1 = require("./v1/accountConfig");
const accountSecret_1 = require("./v1/accountSecret");
const app_1 = require("./v1/app");

@@ -32,2 +34,14 @@ const device_1 = require("./v1/device");

}
/** Getter for accountConfigs resource */
get accountConfigs() {
this._accountConfigs =
this._accountConfigs || (0, accountConfig_1.AccountConfigListInstance)(this);
return this._accountConfigs;
}
/** Getter for accountSecrets resource */
get accountSecrets() {
this._accountSecrets =
this._accountSecrets || (0, accountSecret_1.AccountSecretListInstance)(this);
return this._accountSecrets;
}
/** Getter for apps resource */

@@ -34,0 +48,0 @@ get apps() {

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

import V1 from "../V1";
import { DeviceConfigListInstance } from "./device/deviceConfig";
import { DeviceSecretListInstance } from "./device/deviceSecret";
/**

@@ -52,2 +54,4 @@ * Options to pass to update a DeviceInstance

export interface DeviceContext {
deviceConfigs: DeviceConfigListInstance;
deviceSecrets: DeviceSecretListInstance;
/**

@@ -91,3 +95,7 @@ * Fetch a DeviceInstance

protected _uri: string;
protected _deviceConfigs?: DeviceConfigListInstance;
protected _deviceSecrets?: DeviceSecretListInstance;
constructor(_version: V1, sid: string);
get deviceConfigs(): DeviceConfigListInstance;
get deviceSecrets(): DeviceSecretListInstance;
fetch(callback?: (error: Error | null, item?: DeviceInstance) => any): Promise<DeviceInstance>;

@@ -185,2 +193,10 @@ update(params?: DeviceContextUpdateOptions | ((error: Error | null, item?: DeviceInstance) => any), callback?: (error: Error | null, item?: DeviceInstance) => any): Promise<DeviceInstance>;

/**
* Access the deviceConfigs.
*/
deviceConfigs(): DeviceConfigListInstance;
/**
* Access the deviceSecrets.
*/
deviceSecrets(): DeviceSecretListInstance;
/**
* Provide a user-friendly representation

@@ -187,0 +203,0 @@ *

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

const utility_1 = require("../../../base/utility");
const deviceConfig_1 = require("./device/deviceConfig");
const deviceSecret_1 = require("./device/deviceSecret");
class DeviceContextImpl {

@@ -35,2 +37,14 @@ constructor(_version, sid) {

}
get deviceConfigs() {
this._deviceConfigs =
this._deviceConfigs ||
(0, deviceConfig_1.DeviceConfigListInstance)(this._version, this._solution.sid);
return this._deviceConfigs;
}
get deviceSecrets() {
this._deviceSecrets =
this._deviceSecrets ||
(0, deviceSecret_1.DeviceSecretListInstance)(this._version, this._solution.sid);
return this._deviceSecrets;
}
fetch(callback) {

@@ -120,2 +134,14 @@ const instance = this;

/**
* Access the deviceConfigs.
*/
deviceConfigs() {
return this._proxy.deviceConfigs;
}
/**
* Access the deviceSecrets.
*/
deviceSecrets() {
return this._proxy.deviceSecrets;
}
/**
* Provide a user-friendly representation

@@ -122,0 +148,0 @@ *

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

sim?: string;
/** The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/wireless/api/smscommand-resource#status-values) for a description of each. */
/** The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each. */
status?: SmsCommandStatus;

@@ -47,3 +47,3 @@ /** The direction of the SMS Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. */

sim?: string;
/** The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/wireless/api/smscommand-resource#status-values) for a description of each. */
/** The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each. */
status?: SmsCommandStatus;

@@ -63,3 +63,3 @@ /** The direction of the SMS Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. */

sim?: string;
/** The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/wireless/api/smscommand-resource#status-values) for a description of each. */
/** The status of the SMS Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [SMS Command Status Values](https://www.twilio.com/docs/iot/supersim/api/smscommand-resource#status-values) for a description of each. */
status?: SmsCommandStatus;

@@ -66,0 +66,0 @@ /** The direction of the SMS Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. */

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