diff --git a/package-lock.json b/package-lock.json index 16e6be8..4e16b3a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@acrolinx/sidebar-interface", - "version": "15.3.1", + "version": "15.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@acrolinx/sidebar-interface", - "version": "15.3.1", + "version": "15.4.0", "license": "Apache-2.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.45.0", diff --git a/package.json b/package.json index 3233791..4ebb791 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@acrolinx/sidebar-interface", "description": "The interface of the Acrolinx Sidebar", - "version": "15.3.1", + "version": "15.4.0", "license": "Apache-2.0", "author": "Acrolinx", "url": "https://www.acrolinx.com", diff --git a/src/index.ts b/src/index.ts index 223ec24..1883a7c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -206,6 +206,26 @@ export interface InitParameters extends SidebarConfiguration { * New since sidebar version 14.11.0. */ accessToken?: string; + + /** + * KeyCloak tokens used used by sidebar to authenticate in Acrolinx One + * Available: Acrolinx One Cloud + */ + keyCloakTokens?: KeyCloakTokens; +} + +export interface KeyCloakTokens { + /** + * The sidebar uses this optional KeyCloak access token to sign in to Acrolinx One. + * Available in Acrolinx One Cloud + */ + keyCloakAccessToken: string; + + /** + * The sidebar uses this optional KeyCloak refresh token to fetch new access token. + * Available in Acrolinx One Cloud + */ + keyCloakRefreshToken: string; } export type UiMode = 'default' | 'noOptions';