@rqmii_immersive/agent-react-sdk 1.0.1 → 1.0.3
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/index.d.ts +7 -1
- package/dist/rqmii-react-agent-sdk.cjs +352 -352
- package/dist/rqmii-react-agent-sdk.cjs.map +1 -1
- package/dist/rqmii-react-agent-sdk.js +2578 -2560
- package/dist/rqmii-react-agent-sdk.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,11 @@ export interface UseRqmiiConnectionReturn {
|
|
|
135
135
|
initializeSession: (args?: InitializeSessionArgs) => Promise<any>;
|
|
136
136
|
joinDesktopSession: (args: JoinDesktopSessionArgs) => Promise<any>;
|
|
137
137
|
disconnect: () => void;
|
|
138
|
+
terminateSession: () => Promise<{ success: boolean; skipped?: boolean; error?: unknown }>;
|
|
139
|
+
interrupt: () => boolean;
|
|
140
|
+
refreshSessionActivity: () => boolean;
|
|
141
|
+
clearSessionHistory: () => boolean;
|
|
142
|
+
changeSessionLanguage: (language: string) => boolean;
|
|
138
143
|
}
|
|
139
144
|
|
|
140
145
|
export interface UseRqmiiMessagesReturn {
|
|
@@ -223,6 +228,7 @@ export interface RqmiiAgentContextValue extends UseRqmiiConnectionReturn {
|
|
|
223
228
|
initializeSession: (args?: InitializeSessionArgs) => Promise<any>;
|
|
224
229
|
joinDesktopSession: (args: JoinDesktopSessionArgs) => Promise<any>;
|
|
225
230
|
disconnect: () => void;
|
|
231
|
+
terminateSession: () => Promise<{ success: boolean; skipped?: boolean; error?: unknown }>;
|
|
226
232
|
emit: (event: string, payload?: unknown) => boolean;
|
|
227
233
|
sendTextMessage: (text: string) => boolean;
|
|
228
234
|
sendAudioChunk: (audio: ArrayBuffer | Uint8Array | unknown) => boolean;
|
|
@@ -230,6 +236,7 @@ export interface RqmiiAgentContextValue extends UseRqmiiConnectionReturn {
|
|
|
230
236
|
interrupt: () => boolean;
|
|
231
237
|
refreshSessionActivity: () => boolean;
|
|
232
238
|
clearSessionHistory: () => boolean;
|
|
239
|
+
changeSessionLanguage: (language: string) => boolean;
|
|
233
240
|
clearMessages: () => void;
|
|
234
241
|
resumeAudioPlayback: () => Promise<void>;
|
|
235
242
|
attachAudioElement: (element: HTMLAudioElement | null) => void;
|
|
@@ -282,4 +289,3 @@ export function useRqmiiVAD(options?: UseRqmiiVADOptions): UseRqmiiVADReturn;
|
|
|
282
289
|
export function RqmiiAgentRoom(props: RqmiiAgentRoomProps): React.JSX.Element;
|
|
283
290
|
export function RqmiiCloudAvatarPlayer(props: RqmiiCloudAvatarPlayerProps): React.JSX.Element | null;
|
|
284
291
|
export const EpicPixelStreamingPlayer: React.ComponentType<EpicPixelStreamingPlayerProps>;
|
|
285
|
-
|