Skip to content

Commit dcef0bb

Browse files
committed
[Librarian] Regenerated @ 85d420e85461ff1892d00b72852ff7e138514cbc
1 parent ecdabad commit dcef0bb

File tree

18 files changed

+1039
-108
lines changed

18 files changed

+1039
-108
lines changed

CHANGES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
twilio-node changelog
22
=====================
33

4+
[2022-07-13] Version 3.79.0
5+
---------------------------
6+
**Library - Test**
7+
- [PR #771](https://github.com/twilio/twilio-node/pull/771): Adding misc as PR type. Thanks to [@rakatyal](https://github.com/rakatyal)!
8+
9+
**Conversations**
10+
- Allowed to use `identity` as part of Participant's resource **(breaking change)**
11+
12+
**Lookups**
13+
- Remove `enhanced_line_type` from the lookup response **(breaking change)**
14+
15+
**Supersim**
16+
- Add support for `sim_ip_addresses` resource to helper libraries
17+
18+
**Verify**
19+
- Changed summary param `service_sid` to `verify_service_sid` to be consistent with list attempts API **(breaking change)**
20+
- Make `code` optional on Verification check to support `sna` attempts.
21+
22+
423
[2022-06-29] Version 3.78.0
524
---------------------------
625
**Library - Docs**

lib/rest/conversations/v1/conversation/participant.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,8 @@ ParticipantPage.prototype[util.inspect.custom] = function inspect(depth,
505505
* @param {ParticipantPayload} payload - The instance payload
506506
* @param {sid} conversationSid -
507507
* The unique ID of the Conversation for this participant.
508-
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
508+
* @param {sid_like} sid -
509+
* A 34 character string that uniquely identifies this resource.
509510
*/
510511
/* jshint ignore:end */
511512
ParticipantInstance = function ParticipantInstance(version, payload,
@@ -651,7 +652,8 @@ ParticipantInstance.prototype[util.inspect.custom] = function inspect(depth,
651652
* @param {V1} version - Version of the resource
652653
* @param {sid_like} conversationSid -
653654
* The unique ID of the Conversation for this participant.
654-
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
655+
* @param {sid_like} sid -
656+
* A 34 character string that uniquely identifies this resource.
655657
*/
656658
/* jshint ignore:end */
657659
ParticipantContext = function ParticipantContext(version, conversationSid, sid)

lib/rest/conversations/v1/service/conversation/participant.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,8 @@ ParticipantPage.prototype[util.inspect.custom] = function inspect(depth,
527527
* The SID of the Conversation Service that the resource is associated with.
528528
* @param {sid} conversationSid -
529529
* The unique ID of the Conversation for this participant.
530-
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
530+
* @param {sid_like} sid -
531+
* A 34 character string that uniquely identifies this resource.
531532
*/
532533
/* jshint ignore:end */
533534
ParticipantInstance = function ParticipantInstance(version, payload,
@@ -682,7 +683,8 @@ ParticipantInstance.prototype[util.inspect.custom] = function inspect(depth,
682683
* The SID of the Conversation Service that the resource is associated with.
683684
* @param {sid_like} conversationSid -
684685
* The unique ID of the Conversation for this participant.
685-
* @param {sid} sid - A 34 character string that uniquely identifies this resource.
686+
* @param {sid_like} sid -
687+
* A 34 character string that uniquely identifies this resource.
686688
*/
687689
/* jshint ignore:end */
688690
ParticipantContext = function ParticipantContext(version, chatServiceSid,

lib/rest/lookups/v2/phoneNumber.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ interface PhoneNumberResource {
6060
caller_name: object;
6161
calling_country_code: string;
6262
country_code: string;
63-
enhanced_line_type: object;
6463
line_type_intelligence: object;
6564
live_activity: object;
6665
national_format: string;
@@ -125,7 +124,6 @@ declare class PhoneNumberInstance extends SerializableClass {
125124
callerName: any;
126125
callingCountryCode: string;
127126
countryCode: string;
128-
enhancedLineType: any;
129127
/**
130128
* fetch a PhoneNumberInstance
131129
*

lib/rest/lookups/v2/phoneNumber.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ PhoneNumberPage.prototype[util.inspect.custom] = function inspect(depth,
179179
* An object that contains call forwarding status information
180180
* @property {object} liveActivity -
181181
* An object that contains live activity information
182-
* @property {object} enhancedLineType -
183-
* An object that contains line type information
184182
* @property {object} lineTypeIntelligence -
185183
* An object that contains line type information
186184
* @property {string} url - The absolute URL of the resource
@@ -205,7 +203,6 @@ PhoneNumberInstance = function PhoneNumberInstance(version, payload,
205203
this.simSwap = payload.sim_swap; // jshint ignore:line
206204
this.callForwarding = payload.call_forwarding; // jshint ignore:line
207205
this.liveActivity = payload.live_activity; // jshint ignore:line
208-
this.enhancedLineType = payload.enhanced_line_type; // jshint ignore:line
209206
this.lineTypeIntelligence = payload.line_type_intelligence; // jshint ignore:line
210207
this.url = payload.url; // jshint ignore:line
211208

lib/rest/supersim/v1/sim.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import V1 = require('../V1');
1111
import { BillingPeriodList } from './sim/billingPeriod';
1212
import { BillingPeriodListInstance } from './sim/billingPeriod';
1313
import { SerializableClass } from '../../../interfaces';
14+
import { SimIpAddressList } from './sim/simIpAddress';
15+
import { SimIpAddressListInstance } from './sim/simIpAddress';
1416

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

@@ -290,6 +292,7 @@ declare class SimContext {
290292
* @param callback - Callback to handle processed record
291293
*/
292294
fetch(callback?: (error: Error | null, items: SimInstance) => any): Promise<SimInstance>;
295+
simIpAddresses: SimIpAddressListInstance;
293296
/**
294297
* Provide a user-friendly representation
295298
*/
@@ -341,6 +344,10 @@ declare class SimInstance extends SerializableClass {
341344
iccid: string;
342345
links: string;
343346
sid: string;
347+
/**
348+
* Access the simIpAddresses
349+
*/
350+
simIpAddresses(): SimIpAddressListInstance;
344351
status: SimStatus;
345352
/**
346353
* Provide a user-friendly representation

lib/rest/supersim/v1/sim.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ var _ = require('lodash'); /* jshint ignore:line */
1414
var util = require('util'); /* jshint ignore:line */
1515
var BillingPeriodList = require('./sim/billingPeriod').BillingPeriodList;
1616
var Page = require('../../../base/Page'); /* jshint ignore:line */
17+
var SimIpAddressList = require('./sim/simIpAddress').SimIpAddressList;
1718
var deserialize = require(
1819
'../../../base/deserialize'); /* jshint ignore:line */
1920
var values = require('../../../base/values'); /* jshint ignore:line */
@@ -590,6 +591,20 @@ SimInstance.prototype.billingPeriods = function billingPeriods() {
590591
return this._proxy.billingPeriods;
591592
};
592593

594+
/* jshint ignore:start */
595+
/**
596+
* Access the simIpAddresses
597+
*
598+
* @function simIpAddresses
599+
* @memberof Twilio.Supersim.V1.SimInstance#
600+
*
601+
* @returns {Twilio.Supersim.V1.SimContext.SimIpAddressList}
602+
*/
603+
/* jshint ignore:end */
604+
SimInstance.prototype.simIpAddresses = function simIpAddresses() {
605+
return this._proxy.simIpAddresses;
606+
};
607+
593608
/* jshint ignore:start */
594609
/**
595610
* Provide a user-friendly representation
@@ -626,6 +641,8 @@ SimInstance.prototype[util.inspect.custom] = function inspect(depth, options) {
626641
*
627642
* @property {Twilio.Supersim.V1.SimContext.BillingPeriodList} billingPeriods -
628643
* billingPeriods resource
644+
* @property {Twilio.Supersim.V1.SimContext.SimIpAddressList} simIpAddresses -
645+
* simIpAddresses resource
629646
*
630647
* @param {V1} version - Version of the resource
631648
* @param {sid_like} sid - The SID that identifies the resource to fetch
@@ -640,6 +657,7 @@ SimContext = function SimContext(version, sid) {
640657

641658
// Dependents
642659
this._billingPeriods = undefined;
660+
this._simIpAddresses = undefined;
643661
};
644662

645663
/* jshint ignore:start */
@@ -741,6 +759,16 @@ Object.defineProperty(SimContext.prototype,
741759
}
742760
});
743761

762+
Object.defineProperty(SimContext.prototype,
763+
'simIpAddresses', {
764+
get: function() {
765+
if (!this._simIpAddresses) {
766+
this._simIpAddresses = new SimIpAddressList(this._version, this._solution.sid);
767+
}
768+
return this._simIpAddresses;
769+
}
770+
});
771+
744772
/* jshint ignore:start */
745773
/**
746774
* Provide a user-friendly representation

0 commit comments

Comments
 (0)