hume 0.6.0 → 0.6.1

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.
Files changed (156) hide show
  1. package/.mock/definition/api.yml +12 -0
  2. package/.mock/definition/custom-models/__package__.yml +1392 -0
  3. package/.mock/definition/custom-models/datasets.yml +406 -0
  4. package/.mock/definition/custom-models/files.yml +263 -0
  5. package/.mock/definition/custom-models/jobs.yml +44 -0
  6. package/.mock/definition/custom-models/models.yml +303 -0
  7. package/.mock/definition/empathic-voice/__package__.yml +896 -0
  8. package/.mock/definition/empathic-voice/chat.yml +59 -0
  9. package/.mock/definition/empathic-voice/chatGroups.yml +80 -0
  10. package/.mock/definition/empathic-voice/chats.yml +86 -0
  11. package/.mock/definition/empathic-voice/configs.yml +413 -0
  12. package/.mock/definition/empathic-voice/prompts.yml +265 -0
  13. package/.mock/definition/empathic-voice/tools.yml +398 -0
  14. package/.mock/definition/expression-measurement/__package__.yml +1122 -0
  15. package/.mock/definition/expression-measurement/batch.yml +352 -0
  16. package/.mock/definition/expression-measurement/stream.yml +362 -0
  17. package/.mock/fern.config.json +4 -0
  18. package/Client.d.ts +3 -3
  19. package/Client.js +6 -6
  20. package/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  21. package/api/resources/customModels/resources/files/client/Client.js +7 -7
  22. package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  23. package/api/resources/customModels/resources/models/client/Client.js +6 -6
  24. package/api/resources/empathicVoice/client/Client.d.ts +3 -0
  25. package/api/resources/empathicVoice/client/Client.js +5 -0
  26. package/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  27. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  28. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  29. package/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  30. package/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  31. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  32. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  33. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  34. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  35. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  36. package/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  37. package/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  38. package/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  39. package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  40. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  41. package/api/resources/empathicVoice/resources/index.d.ts +2 -0
  42. package/api/resources/empathicVoice/resources/index.js +3 -1
  43. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  44. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  45. package/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  46. package/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  47. package/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  48. package/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  49. package/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  50. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  51. package/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  52. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  53. package/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  54. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  55. package/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  56. package/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  57. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  58. package/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  59. package/api/resources/empathicVoice/types/index.d.ts +5 -0
  60. package/api/resources/empathicVoice/types/index.js +5 -0
  61. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  62. package/api/resources/index.d.ts +1 -1
  63. package/api/resources/index.js +2 -2
  64. package/core/form-data-utils/FormDataWrapper.js +2 -1
  65. package/dist/Client.d.ts +3 -3
  66. package/dist/Client.js +6 -6
  67. package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
  68. package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
  69. package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
  70. package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
  71. package/dist/api/resources/empathicVoice/client/Client.d.ts +3 -0
  72. package/dist/api/resources/empathicVoice/client/Client.js +5 -0
  73. package/dist/api/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +1 -1
  74. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +42 -0
  75. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +178 -0
  76. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.d.ts +1 -0
  77. package/dist/api/resources/empathicVoice/resources/chatGroups/client/index.js +17 -0
  78. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.d.ts +21 -0
  79. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupEventsRequest.js +5 -0
  80. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +17 -0
  81. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.js +5 -0
  82. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.d.ts +2 -0
  83. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/index.js +2 -0
  84. package/dist/api/resources/empathicVoice/resources/chatGroups/index.d.ts +1 -0
  85. package/dist/api/resources/empathicVoice/resources/chatGroups/index.js +17 -0
  86. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
  87. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  88. package/dist/api/resources/empathicVoice/resources/index.d.ts +2 -0
  89. package/dist/api/resources/empathicVoice/resources/index.js +3 -1
  90. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  91. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  92. package/dist/api/resources/empathicVoice/types/AssistantMessage.d.ts +1 -1
  93. package/dist/api/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  94. package/dist/api/resources/empathicVoice/types/ChatMetadata.js +5 -0
  95. package/dist/api/resources/empathicVoice/types/ReturnChat.d.ts +2 -0
  96. package/dist/api/resources/empathicVoice/types/ReturnChatEvent.d.ts +2 -0
  97. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +19 -0
  98. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.js +5 -0
  99. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +24 -0
  100. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +5 -0
  101. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +19 -0
  102. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +5 -0
  103. package/dist/api/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +2 -0
  104. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  105. package/dist/api/resources/empathicVoice/types/ReturnPagedChatGroups.js +5 -0
  106. package/dist/api/resources/empathicVoice/types/index.d.ts +5 -0
  107. package/dist/api/resources/empathicVoice/types/index.js +5 -0
  108. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  109. package/dist/api/resources/index.d.ts +1 -1
  110. package/dist/api/resources/index.js +2 -2
  111. package/dist/core/form-data-utils/FormDataWrapper.js +2 -1
  112. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  113. package/dist/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  114. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  115. package/dist/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  116. package/dist/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  117. package/dist/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  118. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  119. package/dist/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  120. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  121. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  122. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  123. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  124. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  125. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  126. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  127. package/dist/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  128. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  129. package/dist/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  130. package/dist/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  131. package/dist/serialization/resources/empathicVoice/types/index.js +5 -0
  132. package/dist/serialization/resources/index.d.ts +1 -1
  133. package/dist/serialization/resources/index.js +2 -2
  134. package/package.json +1 -1
  135. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.d.ts +2 -1
  136. package/serialization/resources/empathicVoice/resources/chat/types/SubscribeEvent.js +2 -0
  137. package/serialization/resources/empathicVoice/types/ChatMetadata.d.ts +15 -0
  138. package/serialization/resources/empathicVoice/types/ChatMetadata.js +36 -0
  139. package/serialization/resources/empathicVoice/types/ReturnChat.d.ts +1 -0
  140. package/serialization/resources/empathicVoice/types/ReturnChat.js +1 -0
  141. package/serialization/resources/empathicVoice/types/ReturnChatEvent.d.ts +1 -0
  142. package/serialization/resources/empathicVoice/types/ReturnChatEvent.js +1 -0
  143. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +17 -0
  144. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +38 -0
  145. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.d.ts +20 -0
  146. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedChats.js +41 -0
  147. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.d.ts +17 -0
  148. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedEvents.js +38 -0
  149. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.d.ts +1 -0
  150. package/serialization/resources/empathicVoice/types/ReturnChatPagedEvents.js +1 -0
  151. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.d.ts +15 -0
  152. package/serialization/resources/empathicVoice/types/ReturnPagedChatGroups.js +36 -0
  153. package/serialization/resources/empathicVoice/types/index.d.ts +5 -0
  154. package/serialization/resources/empathicVoice/types/index.js +5 -0
  155. package/serialization/resources/index.d.ts +1 -1
  156. package/serialization/resources/index.js +2 -2
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.expressionMeasurement = exports.customModels = exports.empathicVoice = void 0;
27
- exports.empathicVoice = __importStar(require("./empathicVoice"));
26
+ exports.expressionMeasurement = exports.empathicVoice = exports.customModels = void 0;
28
27
  exports.customModels = __importStar(require("./customModels"));
28
+ exports.empathicVoice = __importStar(require("./empathicVoice"));
29
29
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
@@ -33,6 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  exports.FormDataWrapper = void 0;
36
+ const stream_1 = require("stream");
36
37
  const runtime_1 = require("../runtime");
37
38
  class FormDataRequestBody {
38
39
  constructor(fd) {
@@ -57,7 +58,7 @@ class FormDataRequestBody {
57
58
  if (this.encoder == null) {
58
59
  yield this.setup();
59
60
  }
60
- return (yield Promise.resolve().then(() => __importStar(require("node:stream")))).Readable.from(this.encoder);
61
+ return stream_1.Readable.from(this.encoder);
61
62
  }
62
63
  });
63
64
  }
@@ -7,6 +7,7 @@ import * as core from "../../../../../../core";
7
7
  import { AssistantEnd } from "../../../types/AssistantEnd";
8
8
  import { AssistantMessage } from "../../../types/AssistantMessage";
9
9
  import { AudioOutput } from "../../../types/AudioOutput";
10
+ import { ChatMetadata } from "../../../types/ChatMetadata";
10
11
  import { WebSocketError } from "../../../types/WebSocketError";
11
12
  import { UserInterruption } from "../../../types/UserInterruption";
12
13
  import { UserMessage } from "../../../types/UserMessage";
@@ -15,5 +16,5 @@ import { ToolResponseMessage } from "../../../types/ToolResponseMessage";
15
16
  import { ToolErrorMessage } from "../../../types/ToolErrorMessage";
16
17
  export declare const SubscribeEvent: core.serialization.Schema<serializers.empathicVoice.SubscribeEvent.Raw, Hume.empathicVoice.SubscribeEvent>;
17
18
  export declare namespace SubscribeEvent {
18
- type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AudioOutput.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
19
+ type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
19
20
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../../../core"));
31
31
  const AssistantEnd_1 = require("../../../types/AssistantEnd");
32
32
  const AssistantMessage_1 = require("../../../types/AssistantMessage");
33
33
  const AudioOutput_1 = require("../../../types/AudioOutput");
34
+ const ChatMetadata_1 = require("../../../types/ChatMetadata");
34
35
  const WebSocketError_1 = require("../../../types/WebSocketError");
35
36
  const UserInterruption_1 = require("../../../types/UserInterruption");
36
37
  const UserMessage_1 = require("../../../types/UserMessage");
@@ -41,6 +42,7 @@ exports.SubscribeEvent = core.serialization.undiscriminatedUnion([
41
42
  AssistantEnd_1.AssistantEnd,
42
43
  AssistantMessage_1.AssistantMessage,
43
44
  AudioOutput_1.AudioOutput,
45
+ ChatMetadata_1.ChatMetadata,
44
46
  WebSocketError_1.WebSocketError,
45
47
  UserInterruption_1.UserInterruption,
46
48
  UserMessage_1.UserMessage,
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ChatMetadata: core.serialization.ObjectSchema<serializers.empathicVoice.ChatMetadata.Raw, Hume.empathicVoice.ChatMetadata>;
8
+ export declare namespace ChatMetadata {
9
+ interface Raw {
10
+ chat_group_id: string;
11
+ chat_id: string;
12
+ custom_session_id?: string | null;
13
+ type: "chat_metadata";
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ChatMetadata = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ChatMetadata = core.serialization.object({
32
+ chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
33
+ chatId: core.serialization.property("chat_id", core.serialization.string()),
34
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
35
+ type: core.serialization.stringLiteral("chat_metadata"),
36
+ });
@@ -9,6 +9,7 @@ export declare const ReturnChat: core.serialization.ObjectSchema<serializers.emp
9
9
  export declare namespace ReturnChat {
10
10
  interface Raw {
11
11
  id: string;
12
+ chat_group_id: string;
12
13
  tag?: string | null;
13
14
  status: string;
14
15
  start_timestamp: number;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../core"));
31
31
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
32
32
  exports.ReturnChat = core.serialization.object({
33
33
  id: core.serialization.string(),
34
+ chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
34
35
  tag: core.serialization.string().optional(),
35
36
  status: core.serialization.string(),
36
37
  startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
@@ -8,6 +8,7 @@ export declare const ReturnChatEvent: core.serialization.ObjectSchema<serializer
8
8
  export declare namespace ReturnChatEvent {
9
9
  interface Raw {
10
10
  id: string;
11
+ chat_id: string;
11
12
  timestamp: number;
12
13
  role: string;
13
14
  type: string;
@@ -30,6 +30,7 @@ exports.ReturnChatEvent = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.ReturnChatEvent = core.serialization.object({
32
32
  id: core.serialization.string(),
33
+ chatId: core.serialization.property("chat_id", core.serialization.string()),
33
34
  timestamp: core.serialization.number(),
34
35
  role: core.serialization.string(),
35
36
  type: core.serialization.string(),
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ReturnChatGroup: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroup.Raw, Hume.empathicVoice.ReturnChatGroup>;
8
+ export declare namespace ReturnChatGroup {
9
+ interface Raw {
10
+ id: string;
11
+ first_start_timestamp: number;
12
+ most_recent_start_timestamp: number;
13
+ most_recent_chat_id?: string | null;
14
+ num_chats: number;
15
+ active?: boolean | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ReturnChatGroup = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatGroup = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ firstStartTimestamp: core.serialization.property("first_start_timestamp", core.serialization.number()),
34
+ mostRecentStartTimestamp: core.serialization.property("most_recent_start_timestamp", core.serialization.number()),
35
+ mostRecentChatId: core.serialization.property("most_recent_chat_id", core.serialization.string().optional()),
36
+ numChats: core.serialization.property("num_chats", core.serialization.number()),
37
+ active: core.serialization.boolean().optional(),
38
+ });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ReturnChat } from "./ReturnChat";
8
+ export declare const ReturnChatGroupPagedChats: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroupPagedChats.Raw, Hume.empathicVoice.ReturnChatGroupPagedChats>;
9
+ export declare namespace ReturnChatGroupPagedChats {
10
+ interface Raw {
11
+ id: string;
12
+ first_start_timestamp: number;
13
+ most_recent_start_timestamp: number;
14
+ num_chats: number;
15
+ page_number: number;
16
+ page_size: number;
17
+ chats_page: ReturnChat.Raw[];
18
+ active?: boolean | null;
19
+ }
20
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ReturnChatGroupPagedChats = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ReturnChat_1 = require("./ReturnChat");
32
+ exports.ReturnChatGroupPagedChats = core.serialization.object({
33
+ id: core.serialization.string(),
34
+ firstStartTimestamp: core.serialization.property("first_start_timestamp", core.serialization.number()),
35
+ mostRecentStartTimestamp: core.serialization.property("most_recent_start_timestamp", core.serialization.number()),
36
+ numChats: core.serialization.property("num_chats", core.serialization.number()),
37
+ pageNumber: core.serialization.property("page_number", core.serialization.number()),
38
+ pageSize: core.serialization.property("page_size", core.serialization.number()),
39
+ chatsPage: core.serialization.property("chats_page", core.serialization.list(ReturnChat_1.ReturnChat)),
40
+ active: core.serialization.boolean().optional(),
41
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ReturnChatEvent } from "./ReturnChatEvent";
8
+ export declare const ReturnChatGroupPagedEvents: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroupPagedEvents.Raw, Hume.empathicVoice.ReturnChatGroupPagedEvents>;
9
+ export declare namespace ReturnChatGroupPagedEvents {
10
+ interface Raw {
11
+ id: string;
12
+ page_number: number;
13
+ page_size: number;
14
+ pagination_direction: string;
15
+ events_page: ReturnChatEvent.Raw[];
16
+ }
17
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ReturnChatGroupPagedEvents = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ReturnChatEvent_1 = require("./ReturnChatEvent");
32
+ exports.ReturnChatGroupPagedEvents = core.serialization.object({
33
+ id: core.serialization.string(),
34
+ pageNumber: core.serialization.property("page_number", core.serialization.number()),
35
+ pageSize: core.serialization.property("page_size", core.serialization.number()),
36
+ paginationDirection: core.serialization.property("pagination_direction", core.serialization.string()),
37
+ eventsPage: core.serialization.property("events_page", core.serialization.list(ReturnChatEvent_1.ReturnChatEvent)),
38
+ });
@@ -10,6 +10,7 @@ export declare const ReturnChatPagedEvents: core.serialization.ObjectSchema<seri
10
10
  export declare namespace ReturnChatPagedEvents {
11
11
  interface Raw {
12
12
  id: string;
13
+ chat_group_id: string;
13
14
  tag?: string | null;
14
15
  status: string;
15
16
  start_timestamp: number;
@@ -32,6 +32,7 @@ const ReturnChatEvent_1 = require("./ReturnChatEvent");
32
32
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
33
33
  exports.ReturnChatPagedEvents = core.serialization.object({
34
34
  id: core.serialization.string(),
35
+ chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
35
36
  tag: core.serialization.string().optional(),
36
37
  status: core.serialization.string(),
37
38
  startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ReturnChatGroup } from "./ReturnChatGroup";
8
+ export declare const ReturnPagedChatGroups: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPagedChatGroups.Raw, Hume.empathicVoice.ReturnPagedChatGroups>;
9
+ export declare namespace ReturnPagedChatGroups {
10
+ interface Raw {
11
+ page_number: number;
12
+ page_size: number;
13
+ chat_groups_page: ReturnChatGroup.Raw[];
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ReturnPagedChatGroups = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ReturnChatGroup_1 = require("./ReturnChatGroup");
32
+ exports.ReturnPagedChatGroups = core.serialization.object({
33
+ pageNumber: core.serialization.property("page_number", core.serialization.number()),
34
+ pageSize: core.serialization.property("page_size", core.serialization.number()),
35
+ chatGroupsPage: core.serialization.property("chat_groups_page", core.serialization.list(ReturnChatGroup_1.ReturnChatGroup)),
36
+ });
@@ -21,6 +21,10 @@ export * from "./ReturnChatEvent";
21
21
  export * from "./ReturnChatPagedEvents";
22
22
  export * from "./ReturnActiveChatCount";
23
23
  export * from "./ReturnActiveChatCountPerTag";
24
+ export * from "./ReturnChatGroupPagedEvents";
25
+ export * from "./ReturnChatGroupPagedChats";
26
+ export * from "./ReturnChatGroup";
27
+ export * from "./ReturnPagedChatGroups";
24
28
  export * from "./AssistantEnd";
25
29
  export * from "./AssistantInput";
26
30
  export * from "./AssistantMessage";
@@ -31,6 +35,7 @@ export * from "./BuiltInTool";
31
35
  export * from "./BuiltinToolConfig";
32
36
  export * from "./ChatMessageToolResult";
33
37
  export * from "./ChatMessage";
38
+ export * from "./ChatMetadata";
34
39
  export * from "./Context";
35
40
  export * from "./ContextType";
36
41
  export * from "./EmotionScores";
@@ -37,6 +37,10 @@ __exportStar(require("./ReturnChatEvent"), exports);
37
37
  __exportStar(require("./ReturnChatPagedEvents"), exports);
38
38
  __exportStar(require("./ReturnActiveChatCount"), exports);
39
39
  __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
40
+ __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
41
+ __exportStar(require("./ReturnChatGroupPagedChats"), exports);
42
+ __exportStar(require("./ReturnChatGroup"), exports);
43
+ __exportStar(require("./ReturnPagedChatGroups"), exports);
40
44
  __exportStar(require("./AssistantEnd"), exports);
41
45
  __exportStar(require("./AssistantInput"), exports);
42
46
  __exportStar(require("./AssistantMessage"), exports);
@@ -47,6 +51,7 @@ __exportStar(require("./BuiltInTool"), exports);
47
51
  __exportStar(require("./BuiltinToolConfig"), exports);
48
52
  __exportStar(require("./ChatMessageToolResult"), exports);
49
53
  __exportStar(require("./ChatMessage"), exports);
54
+ __exportStar(require("./ChatMetadata"), exports);
50
55
  __exportStar(require("./Context"), exports);
51
56
  __exportStar(require("./ContextType"), exports);
52
57
  __exportStar(require("./EmotionScores"), exports);
@@ -1,3 +1,3 @@
1
- export * as empathicVoice from "./empathicVoice";
2
1
  export * as customModels from "./customModels";
2
+ export * as empathicVoice from "./empathicVoice";
3
3
  export * as expressionMeasurement from "./expressionMeasurement";
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.expressionMeasurement = exports.customModels = exports.empathicVoice = void 0;
27
- exports.empathicVoice = __importStar(require("./empathicVoice"));
26
+ exports.expressionMeasurement = exports.empathicVoice = exports.customModels = void 0;
28
27
  exports.customModels = __importStar(require("./customModels"));
28
+ exports.empathicVoice = __importStar(require("./empathicVoice"));
29
29
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/HumeAI/hume-typescript-sdk",
6
6
  "main": "./index.js",
@@ -7,6 +7,7 @@ import * as core from "../../../../../../core";
7
7
  import { AssistantEnd } from "../../../types/AssistantEnd";
8
8
  import { AssistantMessage } from "../../../types/AssistantMessage";
9
9
  import { AudioOutput } from "../../../types/AudioOutput";
10
+ import { ChatMetadata } from "../../../types/ChatMetadata";
10
11
  import { WebSocketError } from "../../../types/WebSocketError";
11
12
  import { UserInterruption } from "../../../types/UserInterruption";
12
13
  import { UserMessage } from "../../../types/UserMessage";
@@ -15,5 +16,5 @@ import { ToolResponseMessage } from "../../../types/ToolResponseMessage";
15
16
  import { ToolErrorMessage } from "../../../types/ToolErrorMessage";
16
17
  export declare const SubscribeEvent: core.serialization.Schema<serializers.empathicVoice.SubscribeEvent.Raw, Hume.empathicVoice.SubscribeEvent>;
17
18
  export declare namespace SubscribeEvent {
18
- type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AudioOutput.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
19
+ type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
19
20
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../../../core"));
31
31
  const AssistantEnd_1 = require("../../../types/AssistantEnd");
32
32
  const AssistantMessage_1 = require("../../../types/AssistantMessage");
33
33
  const AudioOutput_1 = require("../../../types/AudioOutput");
34
+ const ChatMetadata_1 = require("../../../types/ChatMetadata");
34
35
  const WebSocketError_1 = require("../../../types/WebSocketError");
35
36
  const UserInterruption_1 = require("../../../types/UserInterruption");
36
37
  const UserMessage_1 = require("../../../types/UserMessage");
@@ -41,6 +42,7 @@ exports.SubscribeEvent = core.serialization.undiscriminatedUnion([
41
42
  AssistantEnd_1.AssistantEnd,
42
43
  AssistantMessage_1.AssistantMessage,
43
44
  AudioOutput_1.AudioOutput,
45
+ ChatMetadata_1.ChatMetadata,
44
46
  WebSocketError_1.WebSocketError,
45
47
  UserInterruption_1.UserInterruption,
46
48
  UserMessage_1.UserMessage,
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ChatMetadata: core.serialization.ObjectSchema<serializers.empathicVoice.ChatMetadata.Raw, Hume.empathicVoice.ChatMetadata>;
8
+ export declare namespace ChatMetadata {
9
+ interface Raw {
10
+ chat_group_id: string;
11
+ chat_id: string;
12
+ custom_session_id?: string | null;
13
+ type: "chat_metadata";
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ChatMetadata = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ChatMetadata = core.serialization.object({
32
+ chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
33
+ chatId: core.serialization.property("chat_id", core.serialization.string()),
34
+ customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
35
+ type: core.serialization.stringLiteral("chat_metadata"),
36
+ });
@@ -9,6 +9,7 @@ export declare const ReturnChat: core.serialization.ObjectSchema<serializers.emp
9
9
  export declare namespace ReturnChat {
10
10
  interface Raw {
11
11
  id: string;
12
+ chat_group_id: string;
12
13
  tag?: string | null;
13
14
  status: string;
14
15
  start_timestamp: number;
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../core"));
31
31
  const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
32
32
  exports.ReturnChat = core.serialization.object({
33
33
  id: core.serialization.string(),
34
+ chatGroupId: core.serialization.property("chat_group_id", core.serialization.string()),
34
35
  tag: core.serialization.string().optional(),
35
36
  status: core.serialization.string(),
36
37
  startTimestamp: core.serialization.property("start_timestamp", core.serialization.number()),
@@ -8,6 +8,7 @@ export declare const ReturnChatEvent: core.serialization.ObjectSchema<serializer
8
8
  export declare namespace ReturnChatEvent {
9
9
  interface Raw {
10
10
  id: string;
11
+ chat_id: string;
11
12
  timestamp: number;
12
13
  role: string;
13
14
  type: string;
@@ -30,6 +30,7 @@ exports.ReturnChatEvent = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.ReturnChatEvent = core.serialization.object({
32
32
  id: core.serialization.string(),
33
+ chatId: core.serialization.property("chat_id", core.serialization.string()),
33
34
  timestamp: core.serialization.number(),
34
35
  role: core.serialization.string(),
35
36
  type: core.serialization.string(),
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Hume from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ReturnChatGroup: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroup.Raw, Hume.empathicVoice.ReturnChatGroup>;
8
+ export declare namespace ReturnChatGroup {
9
+ interface Raw {
10
+ id: string;
11
+ first_start_timestamp: number;
12
+ most_recent_start_timestamp: number;
13
+ most_recent_chat_id?: string | null;
14
+ num_chats: number;
15
+ active?: boolean | null;
16
+ }
17
+ }