uneeq-js 3.0.16-preview.59 → 3.0.16-preview.60

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.
@@ -1,5 +1,9 @@
1
1
  import { type DataChannelActionType } from "./DataChannelActionType";
2
+ import { type CameraAnchorData } from "./messages/CameraAnchor";
3
+ import { type ChatPromptData } from "./messages/ChatPrompt";
4
+ import { type SpeakData } from "./messages/SpeakRequest";
5
+ import { type UserSpeakingData } from "./messages/UserSpeaking";
2
6
  export interface DataChannelAction {
3
7
  action: DataChannelActionType;
4
- data?: any;
8
+ data?: UserSpeakingData | CameraAnchorData | SpeakData | ChatPromptData;
5
9
  }
@@ -12,6 +12,10 @@ export declare enum CameraAnchorPosition {
12
12
  MediumFullShot = "medium_full_shot",
13
13
  FullShot = "full_shot"
14
14
  }
15
+ export interface CameraAnchorData {
16
+ position: CameraAnchorPosition;
17
+ transition_duration_ms: number;
18
+ }
15
19
  export declare class CameraAnchor implements DataChannelMessage {
16
20
  private readonly position;
17
21
  private readonly duration;
@@ -1,5 +1,9 @@
1
1
  import { type DataChannelAction } from "../DataChannelAction";
2
2
  import { type DataChannelMessage } from "../DataChannelMessage";
3
+ export interface ChatPromptData {
4
+ prompt: string;
5
+ metadata: any;
6
+ }
3
7
  export declare class ChatPrompt implements DataChannelMessage {
4
8
  private readonly prompt;
5
9
  private readonly metadata;
@@ -1,5 +1,8 @@
1
1
  import { type DataChannelAction } from "../DataChannelAction";
2
2
  import { type DataChannelMessage } from "../DataChannelMessage";
3
+ export interface SpeakData {
4
+ prompt: string;
5
+ }
3
6
  export declare class Speak implements DataChannelMessage {
4
7
  private readonly prompt;
5
8
  constructor(prompt: string);
@@ -4,6 +4,9 @@ export declare enum UserSpeakingState {
4
4
  Start = "start",
5
5
  Stop = "stop"
6
6
  }
7
+ export interface UserSpeakingData {
8
+ event: UserSpeakingState;
9
+ }
7
10
  export declare class UserSpeaking implements DataChannelMessage {
8
11
  private readonly state;
9
12
  constructor(state: UserSpeakingState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uneeq-js",
3
- "version": "3.0.16-preview.59",
3
+ "version": "3.0.16-preview.60",
4
4
  "description": "In development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",