hume 0.9.8 → 0.9.9

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 (168) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +40 -51
  2. package/.mock/definition/empathic-voice/chatGroups.yml +16 -14
  3. package/.mock/definition/empathic-voice/chats.yml +5 -0
  4. package/.mock/definition/empathic-voice/configs.yml +6 -0
  5. package/Client.d.ts +1 -3
  6. package/Client.js +1 -3
  7. package/api/resources/empathicVoice/client/Client.d.ts +4 -3
  8. package/api/resources/empathicVoice/client/Client.js +14 -11
  9. package/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -0
  10. package/api/resources/empathicVoice/resources/chat/client/Client.js +1 -0
  11. package/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -0
  12. package/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -0
  13. package/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -0
  14. package/api/resources/empathicVoice/resources/chat/client/index.js +1 -0
  15. package/api/resources/empathicVoice/resources/chat/index.d.ts +1 -0
  16. package/api/resources/empathicVoice/resources/chat/index.js +1 -0
  17. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  18. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +5 -5
  19. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -5
  20. package/api/resources/empathicVoice/resources/chats/client/Client.js +7 -4
  21. package/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
  22. package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  23. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  24. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  25. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  26. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  27. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  28. package/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +11 -0
  29. package/api/resources/empathicVoice/types/PostedWebhookEventType.js +10 -0
  30. package/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +13 -0
  31. package/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  32. package/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  33. package/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +11 -0
  34. package/api/resources/empathicVoice/types/ReturnWebhookEventType.js +10 -0
  35. package/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +13 -0
  36. package/api/resources/empathicVoice/types/index.d.ts +4 -3
  37. package/api/resources/empathicVoice/types/index.js +4 -3
  38. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  39. package/api/resources/index.d.ts +1 -1
  40. package/api/resources/index.js +2 -2
  41. package/core/fetcher/Supplier.d.ts +1 -0
  42. package/core/index.d.ts +1 -0
  43. package/core/index.js +1 -0
  44. package/core/websocket/events.d.ts +1 -0
  45. package/core/websocket/events.js +1 -0
  46. package/core/websocket/index.d.ts +1 -0
  47. package/core/websocket/index.js +1 -0
  48. package/core/websocket/ws.js +1 -0
  49. package/dist/Client.d.ts +1 -3
  50. package/dist/Client.js +1 -3
  51. package/dist/api/resources/empathicVoice/client/Client.d.ts +4 -3
  52. package/dist/api/resources/empathicVoice/client/Client.js +14 -11
  53. package/dist/api/resources/empathicVoice/resources/chat/client/Client.d.ts +1 -0
  54. package/dist/api/resources/empathicVoice/resources/chat/client/Client.js +1 -0
  55. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -0
  56. package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -0
  57. package/dist/api/resources/empathicVoice/resources/chat/client/index.d.ts +1 -0
  58. package/dist/api/resources/empathicVoice/resources/chat/client/index.js +1 -0
  59. package/dist/api/resources/empathicVoice/resources/chat/index.d.ts +1 -0
  60. package/dist/api/resources/empathicVoice/resources/chat/index.js +1 -0
  61. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +1 -1
  62. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +5 -5
  63. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -5
  64. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +7 -4
  65. package/dist/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +4 -0
  66. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
  67. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  68. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  69. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  70. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  71. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  72. package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.d.ts +11 -0
  73. package/dist/api/resources/empathicVoice/types/PostedWebhookEventType.js +10 -0
  74. package/dist/api/resources/empathicVoice/types/PostedWebhookSpec.d.ts +13 -0
  75. package/dist/api/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  76. package/dist/api/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  77. package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +11 -0
  78. package/dist/api/resources/empathicVoice/types/ReturnWebhookEventType.js +10 -0
  79. package/dist/api/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +13 -0
  80. package/dist/api/resources/empathicVoice/types/index.d.ts +4 -3
  81. package/dist/api/resources/empathicVoice/types/index.js +4 -3
  82. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  83. package/dist/api/resources/index.d.ts +1 -1
  84. package/dist/api/resources/index.js +2 -2
  85. package/dist/core/fetcher/Supplier.d.ts +1 -0
  86. package/dist/core/index.d.ts +1 -0
  87. package/dist/core/index.js +1 -0
  88. package/dist/core/websocket/events.d.ts +1 -0
  89. package/dist/core/websocket/events.js +1 -0
  90. package/dist/core/websocket/index.d.ts +1 -0
  91. package/dist/core/websocket/index.js +1 -0
  92. package/dist/core/websocket/ws.js +1 -0
  93. package/dist/errors/HumeError.d.ts +1 -3
  94. package/dist/errors/HumeError.js +1 -3
  95. package/dist/index.d.ts +1 -0
  96. package/dist/index.js +1 -0
  97. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  98. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  99. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  100. package/dist/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  101. package/dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +10 -0
  102. package/{serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.js → dist/serialization/resources/empathicVoice/types/PostedWebhookEventType.js} +2 -5
  103. package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +14 -0
  104. package/dist/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +35 -0
  105. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  106. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroup.js +2 -0
  107. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  108. package/dist/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  109. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +10 -0
  110. package/dist/serialization/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookEventType.js} +2 -5
  111. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +14 -0
  112. package/dist/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +35 -0
  113. package/dist/serialization/resources/empathicVoice/types/index.d.ts +4 -3
  114. package/dist/serialization/resources/empathicVoice/types/index.js +4 -3
  115. package/dist/serialization/resources/index.d.ts +1 -1
  116. package/dist/serialization/resources/index.js +2 -2
  117. package/dist/version.d.ts +1 -1
  118. package/dist/version.js +1 -1
  119. package/dist/wrapper/convertBase64ToBlob.d.ts +1 -1
  120. package/errors/HumeError.d.ts +1 -3
  121. package/errors/HumeError.js +1 -3
  122. package/index.d.ts +1 -0
  123. package/index.js +1 -0
  124. package/package.json +1 -1
  125. package/reference.md +538 -538
  126. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -0
  127. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfig.js +2 -0
  128. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -0
  129. package/serialization/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.js +2 -0
  130. package/serialization/resources/empathicVoice/types/PostedWebhookEventType.d.ts +10 -0
  131. package/serialization/resources/empathicVoice/types/{VoiceNameEnum.js → PostedWebhookEventType.js} +2 -17
  132. package/serialization/resources/empathicVoice/types/PostedWebhookSpec.d.ts +14 -0
  133. package/serialization/resources/empathicVoice/types/PostedWebhookSpec.js +35 -0
  134. package/serialization/resources/empathicVoice/types/ReturnChatGroup.d.ts +2 -0
  135. package/serialization/resources/empathicVoice/types/ReturnChatGroup.js +2 -0
  136. package/serialization/resources/empathicVoice/types/ReturnConfig.d.ts +2 -0
  137. package/serialization/resources/empathicVoice/types/ReturnConfig.js +2 -0
  138. package/serialization/resources/empathicVoice/types/ReturnWebhookEventType.d.ts +10 -0
  139. package/{dist/serialization/resources/empathicVoice/types/VoiceNameEnum.js → serialization/resources/empathicVoice/types/ReturnWebhookEventType.js} +2 -17
  140. package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.d.ts +14 -0
  141. package/serialization/resources/empathicVoice/types/ReturnWebhookSpec.js +35 -0
  142. package/serialization/resources/empathicVoice/types/index.d.ts +4 -3
  143. package/serialization/resources/empathicVoice/types/index.js +4 -3
  144. package/serialization/resources/index.d.ts +1 -1
  145. package/serialization/resources/index.js +2 -2
  146. package/version.d.ts +1 -1
  147. package/version.js +1 -1
  148. package/wrapper/convertBase64ToBlob.d.ts +1 -1
  149. package/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -19
  150. package/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -12
  151. package/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -20
  152. package/api/resources/empathicVoice/types/VoiceNameEnum.js +0 -22
  153. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -19
  154. package/dist/api/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -12
  155. package/dist/api/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -20
  156. package/dist/api/resources/empathicVoice/types/VoiceNameEnum.js +0 -22
  157. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -17
  158. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +0 -38
  159. package/dist/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
  160. package/dist/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -10
  161. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.d.ts +0 -17
  162. package/serialization/resources/empathicVoice/types/ReturnActiveChatCount.js +0 -38
  163. package/serialization/resources/empathicVoice/types/ReturnActiveChatCountPerTag.d.ts +0 -13
  164. package/serialization/resources/empathicVoice/types/VoiceNameEnum.d.ts +0 -10
  165. /package/api/resources/empathicVoice/types/{ReturnActiveChatCount.js → PostedWebhookSpec.js} +0 -0
  166. /package/api/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookSpec.js} +0 -0
  167. /package/dist/api/resources/empathicVoice/types/{ReturnActiveChatCount.js → PostedWebhookSpec.js} +0 -0
  168. /package/dist/api/resources/empathicVoice/types/{ReturnActiveChatCountPerTag.js → ReturnWebhookSpec.js} +0 -0
@@ -12,6 +12,7 @@ import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedTo
12
12
  import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
13
13
  import { PostedEventMessageSpecs } from "../../../../types/PostedEventMessageSpecs";
14
14
  import { PostedTimeoutSpecs } from "../../../../types/PostedTimeoutSpecs";
15
+ import { PostedWebhookSpec } from "../../../../types/PostedWebhookSpec";
15
16
  export declare const PostedConfig: core.serialization.Schema<serializers.empathicVoice.PostedConfig.Raw, Hume.empathicVoice.PostedConfig>;
16
17
  export declare namespace PostedConfig {
17
18
  interface Raw {
@@ -26,5 +27,6 @@ export declare namespace PostedConfig {
26
27
  builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
27
28
  event_messages?: PostedEventMessageSpecs.Raw | null;
28
29
  timeouts?: PostedTimeoutSpecs.Raw | null;
30
+ webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
29
31
  }
30
32
  }
@@ -36,6 +36,7 @@ const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefined
36
36
  const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
37
37
  const PostedEventMessageSpecs_1 = require("../../../../types/PostedEventMessageSpecs");
38
38
  const PostedTimeoutSpecs_1 = require("../../../../types/PostedTimeoutSpecs");
39
+ const PostedWebhookSpec_1 = require("../../../../types/PostedWebhookSpec");
39
40
  exports.PostedConfig = core.serialization.object({
40
41
  eviVersion: core.serialization.property("evi_version", core.serialization.string()),
41
42
  name: core.serialization.string(),
@@ -48,4 +49,5 @@ exports.PostedConfig = core.serialization.object({
48
49
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
49
50
  eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_1.PostedEventMessageSpecs.optional()),
50
51
  timeouts: PostedTimeoutSpecs_1.PostedTimeoutSpecs.optional(),
52
+ webhooks: core.serialization.list(PostedWebhookSpec_1.PostedWebhookSpec.optional()).optional(),
51
53
  });
@@ -12,6 +12,7 @@ import { PostedUserDefinedToolSpec } from "../../../../types/PostedUserDefinedTo
12
12
  import { PostedBuiltinTool } from "../../../../types/PostedBuiltinTool";
13
13
  import { PostedEventMessageSpecs } from "../../../../types/PostedEventMessageSpecs";
14
14
  import { PostedTimeoutSpecs } from "../../../../types/PostedTimeoutSpecs";
15
+ import { PostedWebhookSpec } from "../../../../types/PostedWebhookSpec";
15
16
  export declare const PostedConfigVersion: core.serialization.Schema<serializers.empathicVoice.PostedConfigVersion.Raw, Hume.empathicVoice.PostedConfigVersion>;
16
17
  export declare namespace PostedConfigVersion {
17
18
  interface Raw {
@@ -25,5 +26,6 @@ export declare namespace PostedConfigVersion {
25
26
  builtin_tools?: (PostedBuiltinTool.Raw | null | undefined)[] | null;
26
27
  event_messages?: PostedEventMessageSpecs.Raw | null;
27
28
  timeouts?: PostedTimeoutSpecs.Raw | null;
29
+ webhooks?: (PostedWebhookSpec.Raw | null | undefined)[] | null;
28
30
  }
29
31
  }
@@ -36,6 +36,7 @@ const PostedUserDefinedToolSpec_1 = require("../../../../types/PostedUserDefined
36
36
  const PostedBuiltinTool_1 = require("../../../../types/PostedBuiltinTool");
37
37
  const PostedEventMessageSpecs_1 = require("../../../../types/PostedEventMessageSpecs");
38
38
  const PostedTimeoutSpecs_1 = require("../../../../types/PostedTimeoutSpecs");
39
+ const PostedWebhookSpec_1 = require("../../../../types/PostedWebhookSpec");
39
40
  exports.PostedConfigVersion = core.serialization.object({
40
41
  eviVersion: core.serialization.property("evi_version", core.serialization.string()),
41
42
  versionDescription: core.serialization.property("version_description", core.serialization.string().optional()),
@@ -47,4 +48,5 @@ exports.PostedConfigVersion = core.serialization.object({
47
48
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(PostedBuiltinTool_1.PostedBuiltinTool.optional()).optional()),
48
49
  eventMessages: core.serialization.property("event_messages", PostedEventMessageSpecs_1.PostedEventMessageSpecs.optional()),
49
50
  timeouts: PostedTimeoutSpecs_1.PostedTimeoutSpecs.optional(),
51
+ webhooks: core.serialization.list(PostedWebhookSpec_1.PostedWebhookSpec.optional()).optional(),
50
52
  });
@@ -0,0 +1,10 @@
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 PostedWebhookEventType: core.serialization.Schema<serializers.empathicVoice.PostedWebhookEventType.Raw, Hume.empathicVoice.PostedWebhookEventType>;
8
+ export declare namespace PostedWebhookEventType {
9
+ type Raw = "chat_started" | "chat_ended";
10
+ }
@@ -26,21 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.VoiceNameEnum = void 0;
29
+ exports.PostedWebhookEventType = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.VoiceNameEnum = core.serialization.enum_([
32
- "ITO",
33
- "KORA",
34
- "DACHER",
35
- "AURA",
36
- "FINN",
37
- "SIENNA",
38
- "WILLOW",
39
- "SCOUT",
40
- "WHIMSY",
41
- "ACE",
42
- "JUNO",
43
- "STELLA",
44
- "HIRO",
45
- "SUNNY",
46
- ]);
31
+ exports.PostedWebhookEventType = core.serialization.enum_(["chat_started", "chat_ended"]);
@@ -0,0 +1,14 @@
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 { PostedWebhookEventType } from "./PostedWebhookEventType";
8
+ export declare const PostedWebhookSpec: core.serialization.ObjectSchema<serializers.empathicVoice.PostedWebhookSpec.Raw, Hume.empathicVoice.PostedWebhookSpec>;
9
+ export declare namespace PostedWebhookSpec {
10
+ interface Raw {
11
+ url: string;
12
+ events: PostedWebhookEventType.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.PostedWebhookSpec = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const PostedWebhookEventType_1 = require("./PostedWebhookEventType");
32
+ exports.PostedWebhookSpec = core.serialization.object({
33
+ url: core.serialization.string(),
34
+ events: core.serialization.list(PostedWebhookEventType_1.PostedWebhookEventType),
35
+ });
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ReturnConfigSpec } from "./ReturnConfigSpec";
7
8
  export declare const ReturnChatGroup: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroup.Raw, Hume.empathicVoice.ReturnChatGroup>;
8
9
  export declare namespace ReturnChatGroup {
9
10
  interface Raw {
@@ -11,6 +12,7 @@ export declare namespace ReturnChatGroup {
11
12
  first_start_timestamp: number;
12
13
  most_recent_start_timestamp: number;
13
14
  most_recent_chat_id?: string | null;
15
+ most_recent_config?: ReturnConfigSpec.Raw | null;
14
16
  num_chats: number;
15
17
  active?: boolean | null;
16
18
  }
@@ -28,11 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnChatGroup = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnConfigSpec_1 = require("./ReturnConfigSpec");
31
32
  exports.ReturnChatGroup = core.serialization.object({
32
33
  id: core.serialization.string(),
33
34
  firstStartTimestamp: core.serialization.property("first_start_timestamp", core.serialization.number()),
34
35
  mostRecentStartTimestamp: core.serialization.property("most_recent_start_timestamp", core.serialization.number()),
35
36
  mostRecentChatId: core.serialization.property("most_recent_chat_id", core.serialization.string().optional()),
37
+ mostRecentConfig: core.serialization.property("most_recent_config", ReturnConfigSpec_1.ReturnConfigSpec.optional()),
36
38
  numChats: core.serialization.property("num_chats", core.serialization.number()),
37
39
  active: core.serialization.boolean().optional(),
38
40
  });
@@ -12,6 +12,7 @@ import { ReturnUserDefinedTool } from "./ReturnUserDefinedTool";
12
12
  import { ReturnBuiltinTool } from "./ReturnBuiltinTool";
13
13
  import { ReturnEventMessageSpecs } from "./ReturnEventMessageSpecs";
14
14
  import { ReturnTimeoutSpecs } from "./ReturnTimeoutSpecs";
15
+ import { ReturnWebhookSpec } from "./ReturnWebhookSpec";
15
16
  export declare const ReturnConfig: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnConfig.Raw, Hume.empathicVoice.ReturnConfig>;
16
17
  export declare namespace ReturnConfig {
17
18
  interface Raw {
@@ -30,5 +31,6 @@ export declare namespace ReturnConfig {
30
31
  builtin_tools?: (ReturnBuiltinTool.Raw | null | undefined)[] | null;
31
32
  event_messages?: ReturnEventMessageSpecs.Raw | null;
32
33
  timeouts?: ReturnTimeoutSpecs.Raw | null;
34
+ webhooks?: (ReturnWebhookSpec.Raw | null | undefined)[] | null;
33
35
  }
34
36
  }
@@ -36,6 +36,7 @@ const ReturnUserDefinedTool_1 = require("./ReturnUserDefinedTool");
36
36
  const ReturnBuiltinTool_1 = require("./ReturnBuiltinTool");
37
37
  const ReturnEventMessageSpecs_1 = require("./ReturnEventMessageSpecs");
38
38
  const ReturnTimeoutSpecs_1 = require("./ReturnTimeoutSpecs");
39
+ const ReturnWebhookSpec_1 = require("./ReturnWebhookSpec");
39
40
  exports.ReturnConfig = core.serialization.object({
40
41
  id: core.serialization.string().optional(),
41
42
  version: core.serialization.number().optional(),
@@ -52,4 +53,5 @@ exports.ReturnConfig = core.serialization.object({
52
53
  builtinTools: core.serialization.property("builtin_tools", core.serialization.list(ReturnBuiltinTool_1.ReturnBuiltinTool.optional()).optional()),
53
54
  eventMessages: core.serialization.property("event_messages", ReturnEventMessageSpecs_1.ReturnEventMessageSpecs.optional()),
54
55
  timeouts: ReturnTimeoutSpecs_1.ReturnTimeoutSpecs.optional(),
56
+ webhooks: core.serialization.list(ReturnWebhookSpec_1.ReturnWebhookSpec.optional()).optional(),
55
57
  });
@@ -0,0 +1,10 @@
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 ReturnWebhookEventType: core.serialization.Schema<serializers.empathicVoice.ReturnWebhookEventType.Raw, Hume.empathicVoice.ReturnWebhookEventType>;
8
+ export declare namespace ReturnWebhookEventType {
9
+ type Raw = "chat_started" | "chat_ended";
10
+ }
@@ -26,21 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.VoiceNameEnum = void 0;
29
+ exports.ReturnWebhookEventType = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.VoiceNameEnum = core.serialization.enum_([
32
- "ITO",
33
- "KORA",
34
- "DACHER",
35
- "AURA",
36
- "FINN",
37
- "SIENNA",
38
- "WILLOW",
39
- "SCOUT",
40
- "WHIMSY",
41
- "ACE",
42
- "JUNO",
43
- "STELLA",
44
- "HIRO",
45
- "SUNNY",
46
- ]);
31
+ exports.ReturnWebhookEventType = core.serialization.enum_(["chat_started", "chat_ended"]);
@@ -0,0 +1,14 @@
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 { ReturnWebhookEventType } from "./ReturnWebhookEventType";
8
+ export declare const ReturnWebhookSpec: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnWebhookSpec.Raw, Hume.empathicVoice.ReturnWebhookSpec>;
9
+ export declare namespace ReturnWebhookSpec {
10
+ interface Raw {
11
+ url: string;
12
+ events: ReturnWebhookEventType.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.ReturnWebhookSpec = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ReturnWebhookEventType_1 = require("./ReturnWebhookEventType");
32
+ exports.ReturnWebhookSpec = core.serialization.object({
33
+ url: core.serialization.string(),
34
+ events: core.serialization.list(ReturnWebhookEventType_1.ReturnWebhookEventType),
35
+ });
@@ -26,6 +26,8 @@ export * from "./PostedTimeoutSpecs";
26
26
  export * from "./PostedUserDefinedToolSpec";
27
27
  export * from "./PostedVoiceProvider";
28
28
  export * from "./PostedVoice";
29
+ export * from "./PostedWebhookEventType";
30
+ export * from "./PostedWebhookSpec";
29
31
  export * from "./ReturnBuiltinToolToolType";
30
32
  export * from "./ReturnBuiltinTool";
31
33
  export * from "./ReturnConfig";
@@ -39,6 +41,8 @@ export * from "./ReturnTimeoutSpec";
39
41
  export * from "./ReturnTimeoutSpecs";
40
42
  export * from "./ReturnVoiceProvider";
41
43
  export * from "./ReturnVoice";
44
+ export * from "./ReturnWebhookEventType";
45
+ export * from "./ReturnWebhookSpec";
42
46
  export * from "./ReturnPagedUserDefinedTools";
43
47
  export * from "./ReturnPagedPrompts";
44
48
  export * from "./ReturnPagedCustomVoices";
@@ -56,8 +60,6 @@ export * from "./ReturnChatPagedEventsPaginationDirection";
56
60
  export * from "./ReturnChatPagedEvents";
57
61
  export * from "./ReturnChatAudioReconstructionStatus";
58
62
  export * from "./ReturnChatAudioReconstruction";
59
- export * from "./ReturnActiveChatCount";
60
- export * from "./ReturnActiveChatCountPerTag";
61
63
  export * from "./ReturnChatGroup";
62
64
  export * from "./ReturnPagedChatGroupsPaginationDirection";
63
65
  export * from "./ReturnPagedChatGroups";
@@ -108,4 +110,3 @@ export * from "./FunctionCallResponseInput";
108
110
  export * from "./HttpValidationError";
109
111
  export * from "./ValidationErrorLocItem";
110
112
  export * from "./ValidationError";
111
- export * from "./VoiceNameEnum";
@@ -42,6 +42,8 @@ __exportStar(require("./PostedTimeoutSpecs"), exports);
42
42
  __exportStar(require("./PostedUserDefinedToolSpec"), exports);
43
43
  __exportStar(require("./PostedVoiceProvider"), exports);
44
44
  __exportStar(require("./PostedVoice"), exports);
45
+ __exportStar(require("./PostedWebhookEventType"), exports);
46
+ __exportStar(require("./PostedWebhookSpec"), exports);
45
47
  __exportStar(require("./ReturnBuiltinToolToolType"), exports);
46
48
  __exportStar(require("./ReturnBuiltinTool"), exports);
47
49
  __exportStar(require("./ReturnConfig"), exports);
@@ -55,6 +57,8 @@ __exportStar(require("./ReturnTimeoutSpec"), exports);
55
57
  __exportStar(require("./ReturnTimeoutSpecs"), exports);
56
58
  __exportStar(require("./ReturnVoiceProvider"), exports);
57
59
  __exportStar(require("./ReturnVoice"), exports);
60
+ __exportStar(require("./ReturnWebhookEventType"), exports);
61
+ __exportStar(require("./ReturnWebhookSpec"), exports);
58
62
  __exportStar(require("./ReturnPagedUserDefinedTools"), exports);
59
63
  __exportStar(require("./ReturnPagedPrompts"), exports);
60
64
  __exportStar(require("./ReturnPagedCustomVoices"), exports);
@@ -72,8 +76,6 @@ __exportStar(require("./ReturnChatPagedEventsPaginationDirection"), exports);
72
76
  __exportStar(require("./ReturnChatPagedEvents"), exports);
73
77
  __exportStar(require("./ReturnChatAudioReconstructionStatus"), exports);
74
78
  __exportStar(require("./ReturnChatAudioReconstruction"), exports);
75
- __exportStar(require("./ReturnActiveChatCount"), exports);
76
- __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
77
79
  __exportStar(require("./ReturnChatGroup"), exports);
78
80
  __exportStar(require("./ReturnPagedChatGroupsPaginationDirection"), exports);
79
81
  __exportStar(require("./ReturnPagedChatGroups"), exports);
@@ -124,4 +126,3 @@ __exportStar(require("./FunctionCallResponseInput"), exports);
124
126
  __exportStar(require("./HttpValidationError"), exports);
125
127
  __exportStar(require("./ValidationErrorLocItem"), exports);
126
128
  __exportStar(require("./ValidationError"), exports);
127
- __exportStar(require("./VoiceNameEnum"), exports);
@@ -1,2 +1,2 @@
1
- export * as empathicVoice from "./empathicVoice";
2
1
  export * as expressionMeasurement from "./expressionMeasurement";
2
+ export * as empathicVoice from "./empathicVoice";
@@ -23,6 +23,6 @@ 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.empathicVoice = void 0;
27
- exports.empathicVoice = __importStar(require("./empathicVoice"));
26
+ exports.empathicVoice = exports.expressionMeasurement = void 0;
28
27
  exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
28
+ exports.empathicVoice = __importStar(require("./empathicVoice"));
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.8";
1
+ export declare const SDK_VERSION = "0.9.9";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.9.8";
4
+ exports.SDK_VERSION = "0.9.9";
@@ -5,4 +5,4 @@
5
5
  * @param {string} contentType - The MIME type to assign to the resulting `Blob`.
6
6
  * @returns {Blob} A `Blob` object containing the binary data from the base64 string.
7
7
  */
8
- export declare function convertBase64ToBlob(base64: string, contentType: string): Blob;
8
+ export declare function convertBase64ToBlob(base64: string, contentType?: string): Blob;
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Hume from "../../../index";
5
- /**
6
- * A description of current chat chat sessions for a user
7
- */
8
- export interface ReturnActiveChatCount {
9
- /** The timestamp for when chat status was measured. Formatted as a Unix epoch milliseconds. */
10
- timestamp: number;
11
- /** The total number of active chats for this user. */
12
- totalUserActiveChats: number;
13
- /** The maximum number of concurrent active chats for this user. */
14
- maxAllowedActiveChats?: number;
15
- /** Boolean indicating if the user is allowed to start more chats. */
16
- moreActiveChatsAllowed: boolean;
17
- /** Optional List of chat counts per tag. */
18
- perTag?: (Hume.empathicVoice.ReturnActiveChatCountPerTag | undefined)[];
19
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A description of current chat chat sessions per tag
6
- */
7
- export interface ReturnActiveChatCountPerTag {
8
- /** User tag applied to a chat. */
9
- tag: string;
10
- /** The total number of active chats for this user with the specified tag. */
11
- totalTagActiveChats: number;
12
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type VoiceNameEnum = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "SIENNA" | "WILLOW" | "SCOUT" | "WHIMSY" | "ACE" | "JUNO" | "STELLA" | "HIRO" | "SUNNY";
5
- export declare const VoiceNameEnum: {
6
- readonly Ito: "ITO";
7
- readonly Kora: "KORA";
8
- readonly Dacher: "DACHER";
9
- readonly Aura: "AURA";
10
- readonly Finn: "FINN";
11
- readonly Sienna: "SIENNA";
12
- readonly Willow: "WILLOW";
13
- readonly Scout: "SCOUT";
14
- readonly Whimsy: "WHIMSY";
15
- readonly Ace: "ACE";
16
- readonly Juno: "JUNO";
17
- readonly Stella: "STELLA";
18
- readonly Hiro: "HIRO";
19
- readonly Sunny: "SUNNY";
20
- };
@@ -1,22 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.VoiceNameEnum = void 0;
7
- exports.VoiceNameEnum = {
8
- Ito: "ITO",
9
- Kora: "KORA",
10
- Dacher: "DACHER",
11
- Aura: "AURA",
12
- Finn: "FINN",
13
- Sienna: "SIENNA",
14
- Willow: "WILLOW",
15
- Scout: "SCOUT",
16
- Whimsy: "WHIMSY",
17
- Ace: "ACE",
18
- Juno: "JUNO",
19
- Stella: "STELLA",
20
- Hiro: "HIRO",
21
- Sunny: "SUNNY",
22
- };
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Hume from "../../../index";
5
- /**
6
- * A description of current chat chat sessions for a user
7
- */
8
- export interface ReturnActiveChatCount {
9
- /** The timestamp for when chat status was measured. Formatted as a Unix epoch milliseconds. */
10
- timestamp: number;
11
- /** The total number of active chats for this user. */
12
- totalUserActiveChats: number;
13
- /** The maximum number of concurrent active chats for this user. */
14
- maxAllowedActiveChats?: number;
15
- /** Boolean indicating if the user is allowed to start more chats. */
16
- moreActiveChatsAllowed: boolean;
17
- /** Optional List of chat counts per tag. */
18
- perTag?: (Hume.empathicVoice.ReturnActiveChatCountPerTag | undefined)[];
19
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A description of current chat chat sessions per tag
6
- */
7
- export interface ReturnActiveChatCountPerTag {
8
- /** User tag applied to a chat. */
9
- tag: string;
10
- /** The total number of active chats for this user with the specified tag. */
11
- totalTagActiveChats: number;
12
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export declare type VoiceNameEnum = "ITO" | "KORA" | "DACHER" | "AURA" | "FINN" | "SIENNA" | "WILLOW" | "SCOUT" | "WHIMSY" | "ACE" | "JUNO" | "STELLA" | "HIRO" | "SUNNY";
5
- export declare const VoiceNameEnum: {
6
- readonly Ito: "ITO";
7
- readonly Kora: "KORA";
8
- readonly Dacher: "DACHER";
9
- readonly Aura: "AURA";
10
- readonly Finn: "FINN";
11
- readonly Sienna: "SIENNA";
12
- readonly Willow: "WILLOW";
13
- readonly Scout: "SCOUT";
14
- readonly Whimsy: "WHIMSY";
15
- readonly Ace: "ACE";
16
- readonly Juno: "JUNO";
17
- readonly Stella: "STELLA";
18
- readonly Hiro: "HIRO";
19
- readonly Sunny: "SUNNY";
20
- };
@@ -1,22 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.VoiceNameEnum = void 0;
7
- exports.VoiceNameEnum = {
8
- Ito: "ITO",
9
- Kora: "KORA",
10
- Dacher: "DACHER",
11
- Aura: "AURA",
12
- Finn: "FINN",
13
- Sienna: "SIENNA",
14
- Willow: "WILLOW",
15
- Scout: "SCOUT",
16
- Whimsy: "WHIMSY",
17
- Ace: "ACE",
18
- Juno: "JUNO",
19
- Stella: "STELLA",
20
- Hiro: "HIRO",
21
- Sunny: "SUNNY",
22
- };
@@ -1,17 +0,0 @@
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 { ReturnActiveChatCountPerTag } from "./ReturnActiveChatCountPerTag";
8
- export declare const ReturnActiveChatCount: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnActiveChatCount.Raw, Hume.empathicVoice.ReturnActiveChatCount>;
9
- export declare namespace ReturnActiveChatCount {
10
- interface Raw {
11
- timestamp: number;
12
- total_user_active_chats: number;
13
- max_allowed_active_chats?: number | null;
14
- more_active_chats_allowed: boolean;
15
- per_tag?: (ReturnActiveChatCountPerTag.Raw | null | undefined)[] | null;
16
- }
17
- }
@@ -1,38 +0,0 @@
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.ReturnActiveChatCount = void 0;
30
- const core = __importStar(require("../../../../core"));
31
- const ReturnActiveChatCountPerTag_1 = require("./ReturnActiveChatCountPerTag");
32
- exports.ReturnActiveChatCount = core.serialization.object({
33
- timestamp: core.serialization.number(),
34
- totalUserActiveChats: core.serialization.property("total_user_active_chats", core.serialization.number()),
35
- maxAllowedActiveChats: core.serialization.property("max_allowed_active_chats", core.serialization.number().optional()),
36
- moreActiveChatsAllowed: core.serialization.property("more_active_chats_allowed", core.serialization.boolean()),
37
- perTag: core.serialization.property("per_tag", core.serialization.list(ReturnActiveChatCountPerTag_1.ReturnActiveChatCountPerTag.optional()).optional()),
38
- });
@@ -1,13 +0,0 @@
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 ReturnActiveChatCountPerTag: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnActiveChatCountPerTag.Raw, Hume.empathicVoice.ReturnActiveChatCountPerTag>;
8
- export declare namespace ReturnActiveChatCountPerTag {
9
- interface Raw {
10
- tag: string;
11
- total_tag_active_chats: number;
12
- }
13
- }