diff --git a/CHANGELOG.md b/CHANGELOG.md index b14cbef8..d0d2655d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Change Log +## [v4.69.0](https://github.com/plivo/plivo-node/tree/v4.69.0) (2024-09-30) +**Feature - Adding new param support for Number Masking session with single party ** +- Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session ## [v4.68.3](https://github.com/plivo/plivo-node/tree/v4.68.3) (2024-09-06) **Feature - Adding more attribute on mdr object** diff --git a/lib/resources/maskingSession.js b/lib/resources/maskingSession.js index 460c69f7..540360b2 100644 --- a/lib/resources/maskingSession.js +++ b/lib/resources/maskingSession.js @@ -117,6 +117,9 @@ export class MaskingSessionInterface extends PlivoResourceInterface { * @param {boolean} [params.unknownCallerPlay] - Sound url to play for unknown caller. * @param {string} [params.subAccount] - SubAccount to create session. * @param {boolean} [params.geoMatch] - GeoMatch to filter no. + * @param {number} [params.virtualNumberCooloffPeriod] - Specifies the cool-off period for reallocating the number to a new session. Must be a positive integer between 0 and 3600. + * @param {boolean} [params.forcePinAuthentication] - Indicates if PIN is needed, even from the registered mobile number. + * @param {boolean} [params.createSessionWithSingleParty] - Indicates if a session requires one party. Either first_party or second_party is mandatory. * @promise {object} returns PlivoGenericResponse Object * @fail {Error} returns Error */ @@ -124,12 +127,12 @@ export class MaskingSessionInterface extends PlivoResourceInterface { let errors = validate([{ field: 'first_party', value: firstParty, - validators: ['isRequired'] + validators: [] }, { field: 'second_party', value: secondParty, - validators: ['isRequired'] + validators: [] } ]); params.firstParty = firstParty; diff --git a/package.json b/package.json index 74d27f92..1ca53595 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.68.3", + "version": "4.69.0", "description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML", "homepage": "https://github.com/plivo/plivo-node", "files": [