uneeq-js 3.8.3 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uneeq.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare class Uneeq {
|
|
|
21
21
|
userStartSpeaking(): void;
|
|
22
22
|
userStopSpeaking(): void;
|
|
23
23
|
triggerAction(actionName: string): void;
|
|
24
|
+
executeCommand(command: string, enabled: boolean, category?: string, verbosity?: string): void;
|
|
24
25
|
endSession(): void;
|
|
25
26
|
private resetSessionState;
|
|
26
27
|
unmuteDigitalHuman(): void;
|
|
@@ -8,7 +8,8 @@ import { type TriggerActionData } from "./messages/TriggerAction";
|
|
|
8
8
|
import { type UserSpeakingData } from "./messages/UserSpeaking";
|
|
9
9
|
import { type SpeechStreamData } from "./messages/SpeechStream";
|
|
10
10
|
import { type InterimTranscriptData } from "./messages/InterimTranscript";
|
|
11
|
+
import { type ExecuteCommandData } from "./messages/ExecuteCommand";
|
|
11
12
|
export interface DataChannelAction {
|
|
12
13
|
action: DataChannelActionType;
|
|
13
|
-
data?: CameraAnchorData | ChangeAvatarData | ChatPromptData | InterimTranscriptData | SpeakData | StopSpeakingData | SpeechStreamData | TriggerActionData | UserSpeakingData;
|
|
14
|
+
data?: CameraAnchorData | ChangeAvatarData | ChatPromptData | ExecuteCommandData | InterimTranscriptData | SpeakData | StopSpeakingData | SpeechStreamData | TriggerActionData | UserSpeakingData;
|
|
14
15
|
}
|
|
@@ -2,6 +2,7 @@ export declare enum DataChannelActionType {
|
|
|
2
2
|
CameraAnchor = "camera_to_anchor",
|
|
3
3
|
ChangeAvatar = "change_avatar",
|
|
4
4
|
ChatPrompt = "chat_prompt",
|
|
5
|
+
ExecuteCommand = "execute_command",
|
|
5
6
|
InterimTranscript = "interim_transcript",
|
|
6
7
|
StopSpeaking = "stop_speaking",
|
|
7
8
|
Speak = "speak",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type DataChannelAction } from "../DataChannelAction";
|
|
2
|
+
import { type DataChannelMessage } from "../DataChannelMessage";
|
|
3
|
+
export interface ExecuteCommandData {
|
|
4
|
+
command: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
category?: string;
|
|
7
|
+
verbosity?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class ExecuteCommand implements DataChannelMessage {
|
|
10
|
+
private readonly command;
|
|
11
|
+
private readonly enabled;
|
|
12
|
+
private readonly category?;
|
|
13
|
+
private readonly verbosity?;
|
|
14
|
+
constructor(command: string, enabled: boolean, category?: string | undefined, verbosity?: string | undefined);
|
|
15
|
+
toJSON(): DataChannelAction;
|
|
16
|
+
}
|