From 5de7f1f48b62e1288beed5c17a4ba38b65347917 Mon Sep 17 00:00:00 2001 From: Prashant Pandey Date: Fri, 30 Aug 2024 02:25:10 +0530 Subject: [PATCH 1/2] VT-8038: SDK changes for stream xml element keepCallAlive --- CHANGELOG.md | 4 ++++ lib/utils/plivoxml.js | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1f1a95c..4964f879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v4.68.1](https://github.com/plivo/plivo-node/tree/v4.68.1) (2024-09-03) +**Feature - Adding new element for Audio Stream XML ** +- Added `keepCallAlive` element in Audio Stream XML + ## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-07-11) **Feature - Locale param supported for Create, Get and List Verify Session API's** - Added new request param `locale` in create Session API diff --git a/lib/utils/plivoxml.js b/lib/utils/plivoxml.js index 4c2c9852..fa960b8b 100644 --- a/lib/utils/plivoxml.js +++ b/lib/utils/plivoxml.js @@ -1052,7 +1052,7 @@ util.inherits(MultiPartyCall, Response); function Stream(Response) { this.element = 'Stream'; this.valid_attributes = ['bidirectional', 'audioTrack', 'streamTimeout', 'statusCallbackUrl', 'statusCallbackMethod', - 'contentType', 'extraHeaders']; + 'contentType', 'extraHeaders', 'keepCallAlive']; this.nestables = ['break', 'emphasis', 'lang', 'p', 'phoneme', 'prosody', 's', 'say-as', 'sub', 'w']; } util.inherits(Stream, Response); diff --git a/package.json b/package.json index 541921e3..2bac4caa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.68.0", + "version": "4.68.1", "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": [ From 18f4656fb2849968ca56178147a3e61a352acb55 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Plivo <126571031+ashutoshkumar-plivo@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:36:20 +0530 Subject: [PATCH 2/2] SMS-6997: add brand_name and app_hash in create and get/list session response (#340) * SMS-6997: add brand_name and app_hash in create and get/list session response * add version * fix * Adding code length for verify session request * version upgrade --------- Co-authored-by: narayana-plivo --- CHANGELOG.md | 5 +++++ lib/resources/verify.js | 14 +++++++++++++- package.json | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4964f879..33b27c55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,14 @@ # Change Log +## [v4.68.2](https://github.com/plivo/plivo-node/tree/v4.68.2) (2024-09-06) +**Feature - Adding support for brand_name and app_hash in Create,Get and List Session** +- Added new request param `brand_name` and `app_hash` in create Session API +- Added support for `brand_name` and `app_hash` param in get and list Session response ## [v4.68.1](https://github.com/plivo/plivo-node/tree/v4.68.1) (2024-09-03) **Feature - Adding new element for Audio Stream XML ** - Added `keepCallAlive` element in Audio Stream XML + ## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-07-11) **Feature - Locale param supported for Create, Get and List Verify Session API's** - Added new request param `locale` in create Session API diff --git a/lib/resources/verify.js b/lib/resources/verify.js index ef5d604d..01083a52 100644 --- a/lib/resources/verify.js +++ b/lib/resources/verify.js @@ -140,7 +140,7 @@ export class SessionInterface extends PlivoResourceInterface { create(sessionReq){ var isObject = arguments.length; - var app_uuid, recipient, url, method, channel, locale + var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length if (isObject === 1) { app_uuid = sessionReq.app_uuid @@ -149,6 +149,9 @@ export class SessionInterface extends PlivoResourceInterface { method = sessionReq.method channel = sessionReq.channel locale = sessionReq.locale + brand_name = sessionReq.brand_name + app_hash = sessionReq.app_hash + code_length = sessionReq.code_length } let errors = validate([{ @@ -182,6 +185,15 @@ export class SessionInterface extends PlivoResourceInterface { if(method) { params.method = method } + if(brand_name) { + params.brand_name = brand_name + } + if(app_hash) { + params.app_hash = app_hash + } + if (code_length) { + params.code_length = code_length + } } let client = this[clientKey]; diff --git a/package.json b/package.json index 2bac4caa..9c79c5b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.68.1", + "version": "4.68.2", "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": [