hume 0.6.2 → 0.6.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.
@@ -12,6 +12,8 @@ export declare namespace ChatClient {
12
12
  configVersion?: string;
13
13
  /** The ID of a chat group, used to resume a previous chat. */
14
14
  resumedChatGroupId?: string;
15
+ /** List chats in ascending order. */
16
+ ascendingOrder?: boolean;
15
17
  onOpen?: () => void;
16
18
  onMessage?: (message: Hume.empathicVoice.SubscribeEvent) => void;
17
19
  onError?: (error: Hume.empathicVoice.WebSocketError) => void;
@@ -60,6 +60,9 @@ class ChatClient {
60
60
  if (args.resumedChatGroupId != null) {
61
61
  queryParams["resumed_chat_group_id"] = args.resumedChatGroupId;
62
62
  }
63
+ if (args.ascendingOrder != null) {
64
+ queryParams["ascending_order"] = args.ascendingOrder.toString();
65
+ }
63
66
  const websocket = yield core.connect(`wss://api.hume.ai/v0/evi/chat?${qs_1.default.stringify(queryParams)}`);
64
67
  websocket.addEventListener("open", () => {
65
68
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "private": false,
5
5
  "repository": "https://github.com/HumeAI/hume-typescript-sdk",
6
6
  "main": "./index.js",
@@ -12,6 +12,8 @@ export declare namespace ChatClient {
12
12
  configVersion?: string;
13
13
  /** The ID of a chat group, used to resume a previous chat. */
14
14
  resumedChatGroupId?: string;
15
+ /** List chats in ascending order. */
16
+ ascendingOrder?: boolean;
15
17
  onOpen?: () => void;
16
18
  onMessage?: (message: Hume.empathicVoice.SubscribeEvent) => void;
17
19
  onError?: (error: Hume.empathicVoice.WebSocketError) => void;
@@ -60,6 +60,9 @@ class ChatClient {
60
60
  if (args.resumedChatGroupId != null) {
61
61
  queryParams["resumed_chat_group_id"] = args.resumedChatGroupId;
62
62
  }
63
+ if (args.ascendingOrder != null) {
64
+ queryParams["ascending_order"] = args.ascendingOrder.toString();
65
+ }
63
66
  const websocket = yield core.connect(`wss://api.hume.ai/v0/evi/chat?${qs_1.default.stringify(queryParams)}`);
64
67
  websocket.addEventListener("open", () => {
65
68
  var _a;