diff --git a/CHANGELOG.md b/CHANGELOG.md index d6ed56381..d4de8000e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [0.18.0-next.1](https://github.com/rdkcentral/firebolt-apis/compare/v0.17.1...v0.18.0-next.1) (2023-09-26) + + +### Features + +* Added optional parameter 'force' in usergrants.request ([#186](https://github.com/rdkcentral/firebolt-apis/issues/186)) ([31801ca](https://github.com/rdkcentral/firebolt-apis/commit/31801caec6bea0e8b295ea6a9ec54ca1d8e08d16)) + ## [0.17.1](https://github.com/rdkcentral/firebolt-apis/compare/v0.17.0...v0.17.1) (2023-09-15) diff --git a/package-lock.json b/package-lock.json index d93459789..f204a3385 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firebolt-js/sdks", - "version": "0.17.1", + "version": "0.18.0-next.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@firebolt-js/sdks", - "version": "0.17.1", + "version": "0.18.0-next.1", "license": "Apache-2.0", "workspaces": [ "src/sdks/core", @@ -16855,7 +16855,7 @@ }, "src/sdks/core": { "name": "@firebolt-js/sdk", - "version": "0.17.0", + "version": "0.17.1", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", @@ -16865,7 +16865,7 @@ }, "src/sdks/manage": { "name": "@firebolt-js/manage-sdk", - "version": "0.17.0", + "version": "0.17.1", "license": "Apache-2.0", "devDependencies": { "jest": "^28.1.0", diff --git a/package.json b/package.json index 9241e8bc5..f56bb2f24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/sdks", - "version": "0.17.1", + "version": "0.18.0-next.1", "description": "The Firebolt JS SDK", "type": "module", "bin": { diff --git a/src/openrpc/user_grants.json b/src/openrpc/user_grants.json index 789fe4461..fcfe8b1c0 100644 --- a/src/openrpc/user_grants.json +++ b/src/openrpc/user_grants.json @@ -391,6 +391,14 @@ "minItems": 1 }, "required": true + }, + { + "name": "options", + "summary": "Request options", + "schema": { + "$ref": "#/components/schemas/RequestOptions" + }, + "required": false } ], "result": { @@ -405,7 +413,7 @@ }, "examples": [ { - "name": "Default result", + "name": "Default result #1", "params": [ { "name": "appId", @@ -436,6 +444,45 @@ } ] } + }, + { + "name": "Default result #2", + "params": [ + { + "name": "appId", + "value": "certapp" + }, + { + "name": "permissions", + "value": [ + { + "role": "use", + "capability": "xrn:firebolt:capability:localization:postal-code" + } + ] + }, + { + "name": "options", + "value": { + "force": true + } + } + ], + "result": { + "name": "defaultResult", + "value": [ + { + "app": { + "id": "certapp", + "title": "Certification App" + }, + "state": "granted", + "capability": "xrn:firebolt:capability:localization:postal-code", + "role": "use", + "lifespan": "powerActive" + } + ] + } } ] } @@ -528,6 +575,16 @@ }, "additionalProperties": false, "required": [] + }, + "RequestOptions": { + "title": "RequestOptions", + "type": "object", + "properties": { + "force": { + "type": "boolean", + "description": "Whether to force for user grant even if the previous decision stored" + } + } } } } diff --git a/src/sdks/core/package.json b/src/sdks/core/package.json index 98c48e73b..f6e550172 100644 --- a/src/sdks/core/package.json +++ b/src/sdks/core/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/sdk", - "version": "0.17.1", + "version": "0.18.0-next.1", "description": "The Firebolt JS SDK", "main": "./dist/lib/firebolt.mjs", "types": "./dist/lib/firebolt.d.ts", diff --git a/src/sdks/manage/package.json b/src/sdks/manage/package.json index bc61f1087..49094976f 100644 --- a/src/sdks/manage/package.json +++ b/src/sdks/manage/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/manage-sdk", - "version": "0.17.1", + "version": "0.18.0-next.1", "description": "The Firebolt Manage JS SDK", "main": "./dist/lib/firebolt-manage.mjs", "types": "./dist/lib/firebolt-manage.d.ts",