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

@videosdk.live/react-sdk

Package Overview
Dependencies
Maintainers
0
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@videosdk.live/react-sdk - npm Package Compare versions

Comparing version 0.1.101 to 0.1.102

25

dist/types/character.d.ts

@@ -5,6 +5,6 @@ import { Participant } from './participant';

export enum CharacterMode {
TEXT = "text",
CO_PILOT = "co_pilot",
AUTO_PILOT = "auto_pilot",
VISION_PILOT = "vision_pilot"
TEXT = 'text',
CO_PILOT = 'co_pilot',
AUTO_PILOT = 'auto_pilot',
VISION_PILOT = 'vision_pilot'
}

@@ -40,2 +40,7 @@

/**
* @description This represents language of interaction
*/
language: string;
/**
* @description This represents communication mode of character participant

@@ -66,4 +71,4 @@ */

/**
* @description This method can be used to interrupt a character participant
*/
* @description This method can be used to interrupt a character participant
*/
interrupt(): Promise<void>;

@@ -85,3 +90,5 @@

| 'character-joined'
| 'character-left',
| 'character-left'
| 'user-message'
| 'data',
listener: (data: any) => void

@@ -103,5 +110,7 @@ ): void;

| 'character-joined'
| 'character-left',
| 'character-left'
| 'user-message'
| 'data',
listener: (data: any) => void
): void;
}

@@ -1013,3 +1013,2 @@ // Type definitions for @videosdk.live/react-sdk 0.1

/**

@@ -1031,4 +1030,3 @@ * @returns - This will return `startWhiteboard()`, `stopWhiteboard()` and `whiteboardUrl`.

*/
export function useWhiteboard():
{
export function useWhiteboard(): {
/**

@@ -1122,2 +1120,6 @@ * @description Starts the whiteboard for the meeting.

* ---
* @param onUserMessage - This will triggered when a user/participant message is published.
* ---
* @param onData - This will triggered when a character worker notify payload.
* ---
* @param onStreamEnabled - It's a callback which gets triggered whenever a character's video, audio or screen share stream is enabled.

@@ -1146,2 +1148,10 @@ * ---

*
* function onUserMessage(data) {
* console.log('user message Payload:', data);
* }
*
* function onData(topic, data) {
* console.log('character data available:', topic, data);
* }
*
* const { join, leave, sendMessage, interrupt } = useCharacter({

@@ -1155,2 +1165,3 @@ * interactionId,

* knowledgeBases,
* language,
* },

@@ -1160,2 +1171,4 @@ * {

* onCharacterMessage,
* onUserMessage,
* onData,
* onCharacterJoined,

@@ -1187,3 +1200,4 @@ * onCharacterLeft,

characterMode,
knowledgeBases
knowledgeBases,
language
}: {

@@ -1197,2 +1211,3 @@ interactionId: string;

knowledgeBases: string[];
language: string;
},

@@ -1202,3 +1217,4 @@ {

onCharacterMessage,
onUserMessage,
onData,
onStreamEnabled,

@@ -1213,3 +1229,3 @@ onStreamDisabled,

}) => void;
onCharacterMessage?: (data: {
onUserMessage?: (data: {
participantId: string;

@@ -1220,2 +1236,10 @@ participantName: string;

}) => void;
onCharacterMessage?: (data: {
characterId: string;
characterName: string;
text: string;
timestamp: number;
}) => void;
onData?: (topic: string, data: any) => void;
onCharacterJoined?: () => void;

@@ -1222,0 +1246,0 @@ onCharacterLeft?: () => void;

{
"name": "@videosdk.live/react-sdk",
"version": "0.1.101",
"version": "0.1.102",
"license": "ISC",

@@ -77,5 +77,5 @@ "main": "dist/index.js",

"dependencies": {
"@videosdk.live/js-sdk": "0.0.97",
"@videosdk.live/js-sdk": "0.0.98",
"events": "^3.3.0"
}
}

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 too big to display

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