Skip to content

Commit

Permalink
Merge branch 'master' into security-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
narayana-plivo authored May 6, 2024
2 parents 9877f6d + 2304ee8 commit d2645f3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
**Vulnerabilities Fix**
- Axios Cross-Site Request Forgery Vulnerability Fix.

## [v4.63.0](https://github.com/plivo/plivo-node/tree/v4.63.0) (2024-05-02)
**Feature - Pin Based Authentication, SubAccount and GeoMatch for Number Masking**
- Pin Based Authentication, SubAccount and GeoMatch added in Create Session API for Number Masking

## [v4.62.0](https://github.com/plivo/plivo-node/tree/v4.62.0) (2024-04-18)
**Feature - Support for dynamic button components when sending a templated WhatsApp message**
- Added new param `payload` in templates to support dynamic payload in templates

## [v4.61.0](https://github.com/plivo/plivo-node/tree/v4.61.0) (2024-03-13)
**Feature - Import Campaign API**
- Import Campaign API endpoint added
Expand Down
12 changes: 12 additions & 0 deletions lib/resources/maskingSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ export class MaskingSessionInterface extends PlivoResourceInterface {
* @param {string} [params.firstPartyPlayUrl] - The URL to play audio to the first party when the call is established.
* @param {string} [params.secondPartyPlayUrl] - The URL to play audio to the second party when the call is established.
* @param {string} [params.recordingCallbackMethod] - The HTTP method for the recording callback request.
* @param {boolean} [params.isPinAuthenticationRequired] - Indicates we need to authenticate pin or not.
* @param {boolean} [params.generatePin] - Indicates we need to generate pin or not.
* @param {number} [params.generatePinLength] - Pin length, by default = 4.
* @param {string} [params.firstPartyPin] - First Party Pin.
* @param {string} [params.secondPartyPin] - Second Party Pin.
* @param {string} [params.pinPromptPlay] - Sound url to play during pin prompt.
* @param {number} [params.pinRetry] - No of times retry allowed for wrong/invalid pin.
* @param {number} [params.pinRetryWait] - Wait between consecutive retry.
* @param {string} [params.incorrectPinPlay] - Sound url to play when wrong/invalid pin entered.
* @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.
* @promise {object} returns PlivoGenericResponse Object
* @fail {Error} returns Error
*/
Expand Down
1 change: 1 addition & 0 deletions lib/utils/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const parameterSchema = Joi.object({
type: Joi.string().required(),
text: Joi.string().optional(),
media: Joi.string().optional(),
payload: Joi.string().optional(),
currency: currencySchema.optional(),
date_time: dateTimeSchema.optional(),
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.62.0",
"version": "4.64.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": [
Expand Down

0 comments on commit d2645f3

Please sign in to comment.