Skip to content

Commit

Permalink
[Librarian] Regenerated @ 85d420e85461ff1892d00b72852ff7e138514cbc
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jul 13, 2022
1 parent ecdabad commit dcef0bb
Show file tree
Hide file tree
Showing 18 changed files with 1,039 additions and 108 deletions.
19 changes: 19 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
twilio-node changelog
=====================

[2022-07-13] Version 3.79.0
---------------------------
**Library - Test**
- [PR #771](https://github.com/twilio/twilio-node/pull/771): Adding misc as PR type. Thanks to [@rakatyal](https://github.com/rakatyal)!

**Conversations**
- Allowed to use `identity` as part of Participant's resource **(breaking change)**

**Lookups**
- Remove `enhanced_line_type` from the lookup response **(breaking change)**

**Supersim**
- Add support for `sim_ip_addresses` resource to helper libraries

**Verify**
- Changed summary param `service_sid` to `verify_service_sid` to be consistent with list attempts API **(breaking change)**
- Make `code` optional on Verification check to support `sna` attempts.


[2022-06-29] Version 3.78.0
---------------------------
**Library - Docs**
Expand Down
6 changes: 4 additions & 2 deletions lib/rest/conversations/v1/conversation/participant.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ ParticipantPage.prototype[util.inspect.custom] = function inspect(depth,
* @param {ParticipantPayload} payload - The instance payload
* @param {sid} conversationSid -
* The unique ID of the Conversation for this participant.
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
* @param {sid_like} sid -
* A 34 character string that uniquely identifies this resource.
*/
/* jshint ignore:end */
ParticipantInstance = function ParticipantInstance(version, payload,
Expand Down Expand Up @@ -651,7 +652,8 @@ ParticipantInstance.prototype[util.inspect.custom] = function inspect(depth,
* @param {V1} version - Version of the resource
* @param {sid_like} conversationSid -
* The unique ID of the Conversation for this participant.
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
* @param {sid_like} sid -
* A 34 character string that uniquely identifies this resource.
*/
/* jshint ignore:end */
ParticipantContext = function ParticipantContext(version, conversationSid, sid)
Expand Down
6 changes: 4 additions & 2 deletions lib/rest/conversations/v1/service/conversation/participant.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ ParticipantPage.prototype[util.inspect.custom] = function inspect(depth,
* The SID of the Conversation Service that the resource is associated with.
* @param {sid} conversationSid -
* The unique ID of the Conversation for this participant.
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
* @param {sid_like} sid -
* A 34 character string that uniquely identifies this resource.
*/
/* jshint ignore:end */
ParticipantInstance = function ParticipantInstance(version, payload,
Expand Down Expand Up @@ -682,7 +683,8 @@ ParticipantInstance.prototype[util.inspect.custom] = function inspect(depth,
* The SID of the Conversation Service that the resource is associated with.
* @param {sid_like} conversationSid -
* The unique ID of the Conversation for this participant.
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
* @param {sid_like} sid -
* A 34 character string that uniquely identifies this resource.
*/
/* jshint ignore:end */
ParticipantContext = function ParticipantContext(version, chatServiceSid,
Expand Down
2 changes: 0 additions & 2 deletions lib/rest/lookups/v2/phoneNumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ interface PhoneNumberResource {
caller_name: object;
calling_country_code: string;
country_code: string;
enhanced_line_type: object;
line_type_intelligence: object;
live_activity: object;
national_format: string;
Expand Down Expand Up @@ -125,7 +124,6 @@ declare class PhoneNumberInstance extends SerializableClass {
callerName: any;
callingCountryCode: string;
countryCode: string;
enhancedLineType: any;
/**
* fetch a PhoneNumberInstance
*
Expand Down
3 changes: 0 additions & 3 deletions lib/rest/lookups/v2/phoneNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ PhoneNumberPage.prototype[util.inspect.custom] = function inspect(depth,
* An object that contains call forwarding status information
* @property {object} liveActivity -
* An object that contains live activity information
* @property {object} enhancedLineType -
* An object that contains line type information
* @property {object} lineTypeIntelligence -
* An object that contains line type information
* @property {string} url - The absolute URL of the resource
Expand All @@ -205,7 +203,6 @@ PhoneNumberInstance = function PhoneNumberInstance(version, payload,
this.simSwap = payload.sim_swap; // jshint ignore:line
this.callForwarding = payload.call_forwarding; // jshint ignore:line
this.liveActivity = payload.live_activity; // jshint ignore:line
this.enhancedLineType = payload.enhanced_line_type; // jshint ignore:line
this.lineTypeIntelligence = payload.line_type_intelligence; // jshint ignore:line
this.url = payload.url; // jshint ignore:line

Expand Down
7 changes: 7 additions & 0 deletions lib/rest/supersim/v1/sim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import V1 = require('../V1');
import { BillingPeriodList } from './sim/billingPeriod';
import { BillingPeriodListInstance } from './sim/billingPeriod';
import { SerializableClass } from '../../../interfaces';
import { SimIpAddressList } from './sim/simIpAddress';
import { SimIpAddressListInstance } from './sim/simIpAddress';

type SimStatus = 'new'|'ready'|'active'|'inactive'|'scheduled';

Expand Down Expand Up @@ -290,6 +292,7 @@ declare class SimContext {
* @param callback - Callback to handle processed record
*/
fetch(callback?: (error: Error | null, items: SimInstance) => any): Promise<SimInstance>;
simIpAddresses: SimIpAddressListInstance;
/**
* Provide a user-friendly representation
*/
Expand Down Expand Up @@ -341,6 +344,10 @@ declare class SimInstance extends SerializableClass {
iccid: string;
links: string;
sid: string;
/**
* Access the simIpAddresses
*/
simIpAddresses(): SimIpAddressListInstance;
status: SimStatus;
/**
* Provide a user-friendly representation
Expand Down
28 changes: 28 additions & 0 deletions lib/rest/supersim/v1/sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var _ = require('lodash'); /* jshint ignore:line */
var util = require('util'); /* jshint ignore:line */
var BillingPeriodList = require('./sim/billingPeriod').BillingPeriodList;
var Page = require('../../../base/Page'); /* jshint ignore:line */
var SimIpAddressList = require('./sim/simIpAddress').SimIpAddressList;
var deserialize = require(
'../../../base/deserialize'); /* jshint ignore:line */
var values = require('../../../base/values'); /* jshint ignore:line */
Expand Down Expand Up @@ -590,6 +591,20 @@ SimInstance.prototype.billingPeriods = function billingPeriods() {
return this._proxy.billingPeriods;
};

/* jshint ignore:start */
/**
* Access the simIpAddresses
*
* @function simIpAddresses
* @memberof Twilio.Supersim.V1.SimInstance#
*
* @returns {Twilio.Supersim.V1.SimContext.SimIpAddressList}
*/
/* jshint ignore:end */
SimInstance.prototype.simIpAddresses = function simIpAddresses() {
return this._proxy.simIpAddresses;
};

/* jshint ignore:start */
/**
* Provide a user-friendly representation
Expand Down Expand Up @@ -626,6 +641,8 @@ SimInstance.prototype[util.inspect.custom] = function inspect(depth, options) {
*
* @property {Twilio.Supersim.V1.SimContext.BillingPeriodList} billingPeriods -
* billingPeriods resource
* @property {Twilio.Supersim.V1.SimContext.SimIpAddressList} simIpAddresses -
* simIpAddresses resource
*
* @param {V1} version - Version of the resource
* @param {sid_like} sid - The SID that identifies the resource to fetch
Expand All @@ -640,6 +657,7 @@ SimContext = function SimContext(version, sid) {

// Dependents
this._billingPeriods = undefined;
this._simIpAddresses = undefined;
};

/* jshint ignore:start */
Expand Down Expand Up @@ -741,6 +759,16 @@ Object.defineProperty(SimContext.prototype,
}
});

Object.defineProperty(SimContext.prototype,
'simIpAddresses', {
get: function() {
if (!this._simIpAddresses) {
this._simIpAddresses = new SimIpAddressList(this._version, this._solution.sid);
}
return this._simIpAddresses;
}
});

/* jshint ignore:start */
/**
* Provide a user-friendly representation
Expand Down

0 comments on commit dcef0bb

Please sign in to comment.