Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More β†’
Socket
Sign inDemoInstall
Socket

@microsoft/omnichannel-chat-sdk

Package Overview
Dependencies
Maintainers
3
Versions
347
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/omnichannel-chat-sdk - npm Package Compare versions

Comparing version 0.2.1-main.338b82b to 0.2.1-main.366b0fa

lib/core/ConversationMode.d.ts

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Changelog

## [Unreleased]
### Changed
- Uptake [@microsoft/ocsdk@0.2.0](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.2.0)
- Add `getCallingToken`
- Send `ChannelId-lcw` message tag

@@ -7,0 +11,0 @@ ## [0.2.0] - 2021-04-30

@@ -11,5 +11,10 @@ import ChatAdapterConfig from "./ChatAdapterConfig";

}
interface PersistentChatConfig {
disable: boolean;
tokenUpdateTime: number;
}
interface IChatSDKConfig {
dataMasking?: IDataMaskingSDKConfig;
telemetry?: TelemetrySDKConfig;
persistentChat?: PersistentChatConfig;
getAuthToken?: () => Promise<string | null>;

@@ -16,0 +21,0 @@ ic3Config?: IC3Config;

5

lib/OmnichannelChatSDK.d.ts

@@ -14,4 +14,4 @@ import IChatConfig from "./core/IChatConfig";

import IStartChatOptionalParams from "./core/IStartChatOptionalParams";
import LiveWorkItemDetails from "./core/LiveWorkItemDetails";
import OnNewMessageOptionalParams from "./core/OnNewMessageOptionalParams";
import LiveWorkItemDetails from "./core/LiveWorkItemDetails";
declare class OmnichannelChatSDK {

@@ -39,2 +39,4 @@ private debug;

private ocSdkLogger;
private isPersistentChat;
private reconnectId;
constructor(omnichannelConfig: IOmnichannelConfig, chatSDKConfig?: IChatSDKConfig);

@@ -54,2 +56,3 @@ setDebug(flag: boolean): void;

getChatToken(cached?: boolean): Promise<IChatToken>;
getCallingToken(): Promise<string>;
getMessages(): Promise<IMessage[] | undefined>;

@@ -56,0 +59,0 @@ getDataMaskingRules(): Promise<any>;

@@ -13,2 +13,6 @@ "use strict";

ariaTelemetryKey: settings_1.ariaTelemetryKey
},
persistentChat: {
disable: true,
tokenUpdateTime: 21600000
}

@@ -15,0 +19,0 @@ };

{
"name": "@microsoft/omnichannel-chat-sdk",
"version": "0.2.1-main.338b82b",
"version": "0.2.1-main.366b0fa",
"description": "Microsoft Omnichannel Chat SDK",

@@ -41,5 +41,5 @@ "files": [

"dependencies": {
"@microsoft/ocsdk": "^0.1.1",
"@microsoft/ocsdk": "^0.2.0",
"@microsoft/omnichannel-ic3core": "^0.1.1"
}
}

@@ -71,2 +71,3 @@ # Omnichannel Chat SDK

| OmnichannelChatSDK.getChatToken() | Get chat token | |
| OmnichannelChatSDK.getCallingToken() | Get calling token | |
| OmnichannelChatSDK.getMessages() | Get all messages | |

@@ -126,2 +127,7 @@ | OmnichannelChatSDK.sendMessage() | Send message | |

### Get Calling Token
```ts
const callingToken = await chatSDK.getCallingToken();
```
### Get Live Chat Config

@@ -128,0 +134,0 @@ ```ts

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc