Skip to content

Commit

Permalink
[Librarian] Regenerated @ fd9f0e2297602a7e027807ed01d1a6daa364f79f
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Apr 6, 2022
1 parent 055cc46 commit 443cc03
Show file tree
Hide file tree
Showing 22 changed files with 753 additions and 126 deletions.
13 changes: 13 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
twilio-node changelog
=====================

[2022-04-06] Version 3.76.1
---------------------------
**Api**
- Updated `provider_sid` visibility to private

**Verify**
- Verify List Attempts API summary endpoint added.
- Update PII documentation for `AccessTokens` `factor_friendly_name` property.

**Voice**
- make annotation parameter from /Calls API private


[2022-03-23] Version 3.76.0
---------------------------
**Library - Chore**
Expand Down
2 changes: 2 additions & 0 deletions lib/rest/Verify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { FormListInstance } from './verify/v2/form';
import { ServiceListInstance } from './verify/v2/service';
import { TemplateListInstance } from './verify/v2/template';
import { VerificationAttemptListInstance } from './verify/v2/verificationAttempt';
import { VerificationAttemptsSummaryListInstance } from './verify/v2/verificationAttemptsSummary';


declare class Verify extends Domain {
Expand All @@ -27,6 +28,7 @@ declare class Verify extends Domain {
readonly templates: TemplateListInstance;
readonly v2: V2;
readonly verificationAttempts: VerificationAttemptListInstance;
readonly verificationAttemptsSummary: VerificationAttemptsSummaryListInstance;
}

export = Verify;
9 changes: 9 additions & 0 deletions lib/rest/Verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ var V2 = require('./verify/V2'); /* jshint ignore:line */
* @property {Twilio.Verify.V2.ServiceList} services - services resource
* @property {Twilio.Verify.V2.VerificationAttemptList} verificationAttempts -
* verificationAttempts resource
* @property {Twilio.Verify.V2.VerificationAttemptsSummaryList} verificationAttemptsSummary -
* verificationAttemptsSummary resource
* @property {Twilio.Verify.V2.TemplateList} templates - templates resource
*
* @param {Twilio} twilio - The twilio client
Expand Down Expand Up @@ -69,6 +71,13 @@ Object.defineProperty(Verify.prototype,
}
});

Object.defineProperty(Verify.prototype,
'verificationAttemptsSummary', {
get: function() {
return this.v2.verificationAttemptsSummary;
}
});

Object.defineProperty(Verify.prototype,
'templates', {
get: function() {
Expand Down
2 changes: 0 additions & 2 deletions lib/rest/api/v2010/account/call.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ interface CallPayload extends CallResource, Page.TwilioResponsePayload {

interface CallResource {
account_sid: string;
annotation: string;
answered_by: string;
api_version: string;
caller_name: string;
Expand Down Expand Up @@ -479,7 +478,6 @@ declare class CallInstance extends SerializableClass {

private _proxy: CallContext;
accountSid: string;
annotation: string;
answeredBy: string;
apiVersion: string;
callerName: string;
Expand Down
2 changes: 0 additions & 2 deletions lib/rest/api/v2010/account/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ CallPage.prototype[util.inspect.custom] = function inspect(depth, options) {
* A string describing the direction of the call. `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `Dial` verb.
* @property {string} answeredBy -
* Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise.
* @property {string} annotation - The annotation provided for the call
* @property {string} apiVersion - The API Version used to create the call
* @property {string} forwardedFrom -
* The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.
Expand Down Expand Up @@ -698,7 +697,6 @@ CallInstance = function CallInstance(version, payload, accountSid, sid) {
this.priceUnit = payload.price_unit; // jshint ignore:line
this.direction = payload.direction; // jshint ignore:line
this.answeredBy = payload.answered_by; // jshint ignore:line
this.annotation = payload.annotation; // jshint ignore:line
this.apiVersion = payload.api_version; // jshint ignore:line
this.forwardedFrom = payload.forwarded_from; // jshint ignore:line
this.groupSid = payload.group_sid; // jshint ignore:line
Expand Down
3 changes: 3 additions & 0 deletions lib/rest/verify/V2.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import { TemplateList } from './v2/template';
import { TemplateListInstance } from './v2/template';
import { VerificationAttemptList } from './v2/verificationAttempt';
import { VerificationAttemptListInstance } from './v2/verificationAttempt';
import { VerificationAttemptsSummaryList } from './v2/verificationAttemptsSummary';
import { VerificationAttemptsSummaryListInstance } from './v2/verificationAttemptsSummary';


declare class V2 extends Version {
Expand All @@ -29,6 +31,7 @@ declare class V2 extends Version {
readonly services: ServiceListInstance;
readonly templates: TemplateListInstance;
readonly verificationAttempts: VerificationAttemptListInstance;
readonly verificationAttemptsSummary: VerificationAttemptsSummaryListInstance;
}

export = V2;
13 changes: 13 additions & 0 deletions lib/rest/verify/V2.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var ServiceList = require('./v2/service').ServiceList;
var TemplateList = require('./v2/template').TemplateList;
var VerificationAttemptList = require(
'./v2/verificationAttempt').VerificationAttemptList;
var VerificationAttemptsSummaryList = require(
'./v2/verificationAttemptsSummary').VerificationAttemptsSummaryList;
var Version = require('../../base/Version'); /* jshint ignore:line */


Expand All @@ -28,6 +30,8 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
* @property {Twilio.Verify.V2.ServiceList} services - services resource
* @property {Twilio.Verify.V2.VerificationAttemptList} verificationAttempts -
* verificationAttempts resource
* @property {Twilio.Verify.V2.VerificationAttemptsSummaryList} verificationAttemptsSummary -
* verificationAttemptsSummary resource
* @property {Twilio.Verify.V2.TemplateList} templates - templates resource
*
* @param {Twilio.Verify} domain - The twilio domain
Expand All @@ -40,6 +44,7 @@ function V2(domain) {
this._forms = undefined;
this._services = undefined;
this._verificationAttempts = undefined;
this._verificationAttemptsSummary = undefined;
this._templates = undefined;
}

Expand Down Expand Up @@ -70,6 +75,14 @@ Object.defineProperty(V2.prototype,
}
});

Object.defineProperty(V2.prototype,
'verificationAttemptsSummary', {
get: function() {
this._verificationAttemptsSummary = this._verificationAttemptsSummary || new VerificationAttemptsSummaryList(this);
return this._verificationAttemptsSummary;
}
});

Object.defineProperty(V2.prototype,
'templates', {
get: function() {
Expand Down
156 changes: 156 additions & 0 deletions lib/rest/verify/v2/verificationAttemptsSummary.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/

import Page = require('../../../base/Page');
import Response = require('../../../http/response');
import V2 = require('../V2');
import { SerializableClass } from '../../../interfaces';

type VerificationAttemptsSummaryChannels = 'sms'|'call'|'email'|'whatsapp';

/**
* Initialize the VerificationAttemptsSummaryList
*
* @param version - Version of the resource
*/
declare function VerificationAttemptsSummaryList(version: V2): VerificationAttemptsSummaryListInstance;

/**
* Options to pass to fetch
*
* @property channel - Filter verification attempts considered on the summary by communication channel.
* @property country - Filter verification attempts considered on the summary by destination country.
* @property dateCreatedAfter - Consider verification attempts create after this date on the summary.
* @property dateCreatedBefore - Consider verification attempts created before this date on the summary.
* @property destinationPrefix - Filters the attempts considered on the summary by destination prefix.
* @property verifyServiceSid - Filter the verification attempts considered on the summary by verify service.
*/
interface VerificationAttemptsSummaryInstanceFetchOptions {
channel?: VerificationAttemptsSummaryChannels;
country?: string;
dateCreatedAfter?: Date;
dateCreatedBefore?: Date;
destinationPrefix?: string;
verifyServiceSid?: string;
}

interface VerificationAttemptsSummaryListInstance {
/**
* @param sid - sid of instance
*/
(sid: string): VerificationAttemptsSummaryContext;
/**
* Constructs a verification_attempts_summary
*/
get(): VerificationAttemptsSummaryContext;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
}

interface VerificationAttemptsSummaryPayload extends VerificationAttemptsSummaryResource, Page.TwilioResponsePayload {
}

interface VerificationAttemptsSummaryResource {
conversion_rate_percentage: number;
total_attempts: number;
total_converted: number;
total_unconverted: number;
url: string;
}

interface VerificationAttemptsSummarySolution {
}


declare class VerificationAttemptsSummaryContext {
/**
* Initialize the VerificationAttemptsSummaryContext
*
* @param version - Version of the resource
*/
constructor(version: V2);

/**
* fetch a VerificationAttemptsSummaryInstance
*
* @param callback - Callback to handle processed record
*/
fetch(callback?: (error: Error | null, items: VerificationAttemptsSummaryInstance) => any): Promise<VerificationAttemptsSummaryInstance>;
/**
* fetch a VerificationAttemptsSummaryInstance
*
* @param opts - Options for request
* @param callback - Callback to handle processed record
*/
fetch(opts?: VerificationAttemptsSummaryInstanceFetchOptions, callback?: (error: Error | null, items: VerificationAttemptsSummaryInstance) => any): Promise<VerificationAttemptsSummaryInstance>;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
}


declare class VerificationAttemptsSummaryInstance extends SerializableClass {
/**
* Initialize the VerificationAttemptsSummaryContext
*
* @param version - Version of the resource
* @param payload - The instance payload
*/
constructor(version: V2, payload: VerificationAttemptsSummaryPayload);

private _proxy: VerificationAttemptsSummaryContext;
conversionRatePercentage: number;
/**
* fetch a VerificationAttemptsSummaryInstance
*
* @param callback - Callback to handle processed record
*/
fetch(callback?: (error: Error | null, items: VerificationAttemptsSummaryInstance) => any): Promise<VerificationAttemptsSummaryInstance>;
/**
* fetch a VerificationAttemptsSummaryInstance
*
* @param opts - Options for request
* @param callback - Callback to handle processed record
*/
fetch(opts?: VerificationAttemptsSummaryInstanceFetchOptions, callback?: (error: Error | null, items: VerificationAttemptsSummaryInstance) => any): Promise<VerificationAttemptsSummaryInstance>;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
totalAttempts: number;
totalConverted: number;
totalUnconverted: number;
url: string;
}


declare class VerificationAttemptsSummaryPage extends Page<V2, VerificationAttemptsSummaryPayload, VerificationAttemptsSummaryResource, VerificationAttemptsSummaryInstance> {
/**
* Initialize the VerificationAttemptsSummaryPage
*
* @param version - Version of the resource
* @param response - Response from the API
* @param solution - Path solution
*/
constructor(version: V2, response: Response<string>, solution: VerificationAttemptsSummarySolution);

/**
* Build an instance of VerificationAttemptsSummaryInstance
*
* @param payload - Payload response from the API
*/
getInstance(payload: VerificationAttemptsSummaryPayload): VerificationAttemptsSummaryInstance;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
}

export { VerificationAttemptsSummaryChannels, VerificationAttemptsSummaryContext, VerificationAttemptsSummaryInstance, VerificationAttemptsSummaryInstanceFetchOptions, VerificationAttemptsSummaryList, VerificationAttemptsSummaryListInstance, VerificationAttemptsSummaryPage, VerificationAttemptsSummaryPayload, VerificationAttemptsSummaryResource, VerificationAttemptsSummarySolution }
Loading

0 comments on commit 443cc03

Please sign in to comment.