Skip to content

Commit

Permalink
[Librarian] Regenerated @ 1b1f2bd0b89ec7e7ff86f1b6de8f94601143931e
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed Oct 14, 2020
1 parent b2aaa75 commit 901d45d
Show file tree
Hide file tree
Showing 45 changed files with 1,554 additions and 891 deletions.
22 changes: 22 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
twilio-node changelog
=====================

[2020-10-14] Version 3.50.0
---------------------------
**Ai**
- Add `Annotation Project` and `Annotation Task` endpoints
- Add `Primitives` endpoints
- Add `meta.total` to the search endpoint

**Conversations**
- Mutable Conversation Unique Names

**Insights**
- Added `trust` to summary.

**Preview**
- Simplified `Channels` resource. The path is now `/BrandedChannels/branded_channel_sid/Channels` **(breaking change)**

**Verify**
- Changed parameters (`config` and `binding`) to use dot notation instead of JSON string (e.i. Before: `binding={"alg":"ES256", "public_key": "xxx..."}`, Now: `Binding.Alg="ES256"`, `Binding.PublicKey="xxx..."`). **(breaking change)**
- Changed parameters (`details` and `hidden_details`) to use dot notation instead of JSON string (e.i. Before: `details={"message":"Test message", "fields": "[{\"label\": \"Action 1\", \"value\":\"value 1\"}]"}`, Now: `details.Message="Test message"`, `Details.Fields=["{\"label\": \"Action 1\", \"value\":\"value 1\"}"]`). **(breaking change)**
- Removed `notify_service_sid` from `push` service configuration object. Add `Push.IncludeDate`, `Push.ApnCredentialSid` and `Push.FcmCredentialSid` service configuration parameters. **(breaking change)**


[2020-09-28] Version 3.49.4
---------------------------
**Api**
Expand Down
4 changes: 4 additions & 0 deletions lib/rest/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import Domain = require('../base/Domain');
import Twilio = require('./Twilio');
import V1 = require('./accounts/V1');
import { AuthTokenPromotionListInstance } from './accounts/v1/authTokenPromotion';
import { CredentialListInstance } from './accounts/v1/credential';
import { SecondaryAuthTokenListInstance } from './accounts/v1/secondaryAuthToken';


declare class Accounts extends Domain {
Expand All @@ -19,7 +21,9 @@ declare class Accounts extends Domain {
*/
constructor(twilio: Twilio);

readonly authTokenPromotion: AuthTokenPromotionListInstance;
readonly credentials: CredentialListInstance;
readonly secondaryAuthToken: SecondaryAuthTokenListInstance;
readonly v1: V1;
}

Expand Down
18 changes: 18 additions & 0 deletions lib/rest/Accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ var V1 = require('./accounts/V1'); /* jshint ignore:line */
* @constructor Twilio.Accounts
*
* @property {Twilio.Accounts.V1} v1 - v1 version
* @property {Twilio.Accounts.V1.AuthTokenPromotionList} authTokenPromotion -
* authTokenPromotion resource
* @property {Twilio.Accounts.V1.CredentialList} credentials - credentials resource
* @property {Twilio.Accounts.V1.SecondaryAuthTokenList} secondaryAuthToken -
* secondaryAuthToken resource
*
* @param {Twilio} twilio - The twilio client
*/
Expand All @@ -44,11 +48,25 @@ Object.defineProperty(Accounts.prototype,
}
});

Object.defineProperty(Accounts.prototype,
'authTokenPromotion', {
get: function() {
return this.v1.authTokenPromotion;
}
});

Object.defineProperty(Accounts.prototype,
'credentials', {
get: function() {
return this.v1.credentials;
}
});

Object.defineProperty(Accounts.prototype,
'secondaryAuthToken', {
get: function() {
return this.v1.secondaryAuthToken;
}
});

module.exports = Accounts;
2 changes: 2 additions & 0 deletions lib/rest/Preview.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { AssistantListInstance } from './preview/understand/assistant';
import { AuthorizationDocumentListInstance } from './preview/hosted_numbers/authorizationDocument';
import { AvailableAddOnListInstance } from './preview/marketplace/availableAddOn';
import { BrandedCallListInstance } from './preview/trusted_comms/brandedCall';
import { BrandedChannelListInstance } from './preview/trusted_comms/brandedChannel';
import { BrandsInformationListInstance } from './preview/trusted_comms/brandsInformation';
import { BusinessListInstance } from './preview/trusted_comms/business';
import { CommandListInstance } from './preview/wireless/command';
Expand Down Expand Up @@ -47,6 +48,7 @@ declare class Preview extends Domain {
readonly authorizationDocuments: AuthorizationDocumentListInstance;
readonly availableAddOns: AvailableAddOnListInstance;
readonly brandedCalls: BrandedCallListInstance;
readonly brandedChannels: BrandedChannelListInstance;
readonly brandsInformation: BrandsInformationListInstance;
readonly bulk_exports: BulkExports;
readonly businesses: BusinessListInstance;
Expand Down
9 changes: 9 additions & 0 deletions lib/rest/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
* @property {Twilio.Preview.Wireless.SimList} sims - sims resource
* @property {Twilio.Preview.TrustedComms.BrandedCallList} brandedCalls -
* brandedCalls resource
* @property {Twilio.Preview.TrustedComms.BrandedChannelList} brandedChannels -
* brandedChannels resource
* @property {Twilio.Preview.TrustedComms.BrandsInformationList} brandsInformation -
* brandsInformation resource
* @property {Twilio.Preview.TrustedComms.BusinessList} businesses -
Expand Down Expand Up @@ -243,6 +245,13 @@ Object.defineProperty(Preview.prototype,
}
});

Object.defineProperty(Preview.prototype,
'brandedChannels', {
get: function() {
return this.trusted_comms.brandedChannels;
}
});

Object.defineProperty(Preview.prototype,
'brandsInformation', {
get: function() {
Expand Down
6 changes: 6 additions & 0 deletions lib/rest/accounts/V1.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@

import Accounts = require('../Accounts');
import Version = require('../../base/Version');
import { AuthTokenPromotionList } from './v1/authTokenPromotion';
import { AuthTokenPromotionListInstance } from './v1/authTokenPromotion';
import { CredentialList } from './v1/credential';
import { CredentialListInstance } from './v1/credential';
import { SecondaryAuthTokenList } from './v1/secondaryAuthToken';
import { SecondaryAuthTokenListInstance } from './v1/secondaryAuthToken';


declare class V1 extends Version {
Expand All @@ -19,7 +23,9 @@ declare class V1 extends Version {
*/
constructor(domain: Accounts);

readonly authTokenPromotion: AuthTokenPromotionListInstance;
readonly credentials: CredentialListInstance;
readonly secondaryAuthToken: SecondaryAuthTokenListInstance;
}

export = V1;
26 changes: 26 additions & 0 deletions lib/rest/accounts/V1.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
/* jshint ignore:end */

var _ = require('lodash'); /* jshint ignore:line */
var AuthTokenPromotionList = require(
'./v1/authTokenPromotion').AuthTokenPromotionList;
var CredentialList = require('./v1/credential').CredentialList;
var SecondaryAuthTokenList = require(
'./v1/secondaryAuthToken').SecondaryAuthTokenList;
var Version = require('../../base/Version'); /* jshint ignore:line */


Expand All @@ -20,7 +24,11 @@ var Version = require('../../base/Version'); /* jshint ignore:line */
*
* @constructor Twilio.Accounts.V1
*
* @property {Twilio.Accounts.V1.AuthTokenPromotionList} authTokenPromotion -
* authTokenPromotion resource
* @property {Twilio.Accounts.V1.CredentialList} credentials - credentials resource
* @property {Twilio.Accounts.V1.SecondaryAuthTokenList} secondaryAuthToken -
* secondaryAuthToken resource
*
* @param {Twilio.Accounts} domain - The twilio domain
*/
Expand All @@ -29,12 +37,22 @@ function V1(domain) {
Version.prototype.constructor.call(this, domain, 'v1');

// Resources
this._authTokenPromotion = undefined;
this._credentials = undefined;
this._secondaryAuthToken = undefined;
}

_.extend(V1.prototype, Version.prototype);
V1.prototype.constructor = V1;

Object.defineProperty(V1.prototype,
'authTokenPromotion', {
get: function() {
this._authTokenPromotion = this._authTokenPromotion || new AuthTokenPromotionList(this);
return this._authTokenPromotion;
}
});

Object.defineProperty(V1.prototype,
'credentials', {
get: function() {
Expand All @@ -43,4 +61,12 @@ Object.defineProperty(V1.prototype,
}
});

Object.defineProperty(V1.prototype,
'secondaryAuthToken', {
get: function() {
this._secondaryAuthToken = this._secondaryAuthToken || new SecondaryAuthTokenList(this);
return this._secondaryAuthToken;
}
});

module.exports = V1;
121 changes: 121 additions & 0 deletions lib/rest/accounts/v1/authTokenPromotion.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/

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

/**
* Initialize the AuthTokenPromotionList
*
* @param version - Version of the resource
*/
declare function AuthTokenPromotionList(version: V1): AuthTokenPromotionListInstance;

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

interface AuthTokenPromotionPayload extends AuthTokenPromotionResource, Page.TwilioResponsePayload {
}

interface AuthTokenPromotionResource {
account_sid: string;
auth_token: string;
date_created: Date;
date_updated: Date;
url: string;
}

interface AuthTokenPromotionSolution {
}


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

/**
* Provide a user-friendly representation
*/
toJSON(): any;
/**
* update a AuthTokenPromotionInstance
*
* @param callback - Callback to handle processed record
*/
update(callback?: (error: Error | null, items: AuthTokenPromotionInstance) => any): Promise<AuthTokenPromotionInstance>;
}


declare class AuthTokenPromotionInstance extends SerializableClass {
/**
* Initialize the AuthTokenPromotionContext
*
* @param version - Version of the resource
* @param payload - The instance payload
*/
constructor(version: V1, payload: AuthTokenPromotionPayload);

private _proxy: AuthTokenPromotionContext;
accountSid: string;
authToken: string;
dateCreated: Date;
dateUpdated: Date;
/**
* Provide a user-friendly representation
*/
toJSON(): any;
/**
* update a AuthTokenPromotionInstance
*
* @param callback - Callback to handle processed record
*/
update(callback?: (error: Error | null, items: AuthTokenPromotionInstance) => any): Promise<AuthTokenPromotionInstance>;
url: string;
}


declare class AuthTokenPromotionPage extends Page<V1, AuthTokenPromotionPayload, AuthTokenPromotionResource, AuthTokenPromotionInstance> {
/**
* Initialize the AuthTokenPromotionPage
*
* @param version - Version of the resource
* @param response - Response from the API
* @param solution - Path solution
*/
constructor(version: V1, response: Response<string>, solution: AuthTokenPromotionSolution);

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

export { AuthTokenPromotionContext, AuthTokenPromotionInstance, AuthTokenPromotionList, AuthTokenPromotionListInstance, AuthTokenPromotionPage, AuthTokenPromotionPayload, AuthTokenPromotionResource, AuthTokenPromotionSolution }
Loading

0 comments on commit 901d45d

Please sign in to comment.