hume 0.9.3 → 0.9.4

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 (147) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +287 -14
  2. package/.mock/definition/empathic-voice/chatGroups.yml +25 -23
  3. package/.mock/definition/empathic-voice/chats.yml +14 -24
  4. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +8 -2
  5. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -6
  6. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -1
  7. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -2
  8. package/api/resources/empathicVoice/resources/chats/client/Client.js +7 -5
  9. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +4 -4
  10. package/api/resources/empathicVoice/resources/configs/client/Client.js +13 -13
  11. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
  12. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
  13. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  14. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  15. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  16. package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -1
  17. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +35 -0
  18. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -0
  19. package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +2 -2
  20. package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  21. package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  22. package/api/resources/empathicVoice/types/PostedVoice.d.ts +2 -2
  23. package/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +11 -0
  24. package/api/resources/empathicVoice/types/PostedVoiceProvider.js +10 -0
  25. package/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +35 -0
  26. package/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +5 -0
  27. package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +24 -0
  28. package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +13 -0
  29. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +37 -0
  30. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +5 -0
  31. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +13 -0
  32. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +10 -0
  33. package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -1
  34. package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +35 -0
  35. package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +34 -0
  36. package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +2 -2
  37. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +2 -2
  38. package/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +11 -0
  39. package/api/resources/empathicVoice/types/ReturnVoiceProvider.js +10 -0
  40. package/api/resources/empathicVoice/types/index.d.ts +8 -0
  41. package/api/resources/empathicVoice/types/index.js +8 -0
  42. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  43. package/api/resources/index.d.ts +1 -1
  44. package/api/resources/index.js +2 -2
  45. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +8 -2
  46. package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -6
  47. package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -1
  48. package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -2
  49. package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +7 -5
  50. package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +4 -4
  51. package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +13 -13
  52. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
  53. package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
  54. package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  55. package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  56. package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  57. package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -1
  58. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +35 -0
  59. package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -0
  60. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +2 -2
  61. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  62. package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  63. package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +2 -2
  64. package/dist/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +11 -0
  65. package/dist/api/resources/empathicVoice/types/PostedVoiceProvider.js +10 -0
  66. package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +35 -0
  67. package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +5 -0
  68. package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +24 -0
  69. package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +13 -0
  70. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +37 -0
  71. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +5 -0
  72. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +13 -0
  73. package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +10 -0
  74. package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -1
  75. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +35 -0
  76. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +34 -0
  77. package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +2 -2
  78. package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +2 -2
  79. package/dist/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +11 -0
  80. package/dist/api/resources/empathicVoice/types/ReturnVoiceProvider.js +10 -0
  81. package/dist/api/resources/empathicVoice/types/index.d.ts +8 -0
  82. package/dist/api/resources/empathicVoice/types/index.js +8 -0
  83. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  84. package/dist/api/resources/index.d.ts +1 -1
  85. package/dist/api/resources/index.js +2 -2
  86. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -1
  87. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +2 -1
  88. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +10 -0
  89. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +58 -0
  90. package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +2 -1
  91. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +2 -1
  92. package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.d.ts +10 -0
  93. package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +31 -0
  94. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +19 -0
  95. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +40 -0
  96. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +10 -0
  97. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +31 -0
  98. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +21 -0
  99. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +42 -0
  100. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +10 -0
  101. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +31 -0
  102. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  103. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  104. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +10 -0
  105. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +58 -0
  106. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +2 -1
  107. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +2 -1
  108. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +10 -0
  109. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +31 -0
  110. package/dist/serialization/resources/empathicVoice/types/index.d.ts +8 -0
  111. package/dist/serialization/resources/empathicVoice/types/index.js +8 -0
  112. package/dist/serialization/resources/index.d.ts +1 -1
  113. package/dist/serialization/resources/index.js +2 -2
  114. package/dist/version.d.ts +1 -1
  115. package/dist/version.js +1 -1
  116. package/package.json +1 -1
  117. package/reference.md +569 -535
  118. package/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -1
  119. package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +2 -1
  120. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +10 -0
  121. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +58 -0
  122. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +2 -1
  123. package/serialization/resources/empathicVoice/types/PostedVoice.js +2 -1
  124. package/serialization/resources/empathicVoice/types/PostedVoiceProvider.d.ts +10 -0
  125. package/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +31 -0
  126. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +19 -0
  127. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +40 -0
  128. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +10 -0
  129. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +31 -0
  130. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +21 -0
  131. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +42 -0
  132. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +10 -0
  133. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +31 -0
  134. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  135. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  136. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +10 -0
  137. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +58 -0
  138. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +2 -1
  139. package/serialization/resources/empathicVoice/types/ReturnVoice.js +2 -1
  140. package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +10 -0
  141. package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +31 -0
  142. package/serialization/resources/empathicVoice/types/index.d.ts +8 -0
  143. package/serialization/resources/empathicVoice/types/index.js +8 -0
  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
@@ -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 PostedVoiceProvider: core.serialization.Schema<serializers.empathicVoice.PostedVoiceProvider.Raw, Hume.empathicVoice.PostedVoiceProvider>;
8
+ export declare namespace PostedVoiceProvider {
9
+ type Raw = "HUME_AI" | "CUSTOM_VOICE";
10
+ }
@@ -0,0 +1,31 @@
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.PostedVoiceProvider = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.PostedVoiceProvider = core.serialization.enum_(["HUME_AI", "CUSTOM_VOICE"]);
@@ -0,0 +1,19 @@
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 { ReturnChatAudioReconstructionStatus } from "./ReturnChatAudioReconstructionStatus";
8
+ export declare const ReturnChatAudioReconstruction: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatAudioReconstruction.Raw, Hume.empathicVoice.ReturnChatAudioReconstruction>;
9
+ export declare namespace ReturnChatAudioReconstruction {
10
+ interface Raw {
11
+ id: string;
12
+ user_id: string;
13
+ status: ReturnChatAudioReconstructionStatus.Raw;
14
+ filename?: string | null;
15
+ modified_at?: number | null;
16
+ signed_audio_url?: string | null;
17
+ signed_url_expiration_timestamp_millis?: number | null;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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.ReturnChatAudioReconstruction = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ReturnChatAudioReconstructionStatus_1 = require("./ReturnChatAudioReconstructionStatus");
32
+ exports.ReturnChatAudioReconstruction = core.serialization.object({
33
+ id: core.serialization.string(),
34
+ userId: core.serialization.property("user_id", core.serialization.string()),
35
+ status: ReturnChatAudioReconstructionStatus_1.ReturnChatAudioReconstructionStatus,
36
+ filename: core.serialization.string().optional(),
37
+ modifiedAt: core.serialization.property("modified_at", core.serialization.number().optional()),
38
+ signedAudioUrl: core.serialization.property("signed_audio_url", core.serialization.string().optional()),
39
+ signedUrlExpirationTimestampMillis: core.serialization.property("signed_url_expiration_timestamp_millis", core.serialization.number().optional()),
40
+ });
@@ -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 ReturnChatAudioReconstructionStatus: core.serialization.Schema<serializers.empathicVoice.ReturnChatAudioReconstructionStatus.Raw, Hume.empathicVoice.ReturnChatAudioReconstructionStatus>;
8
+ export declare namespace ReturnChatAudioReconstructionStatus {
9
+ type Raw = "QUEUED" | "IN_PROGRESS" | "COMPLETE" | "ERROR" | "CANCELLED";
10
+ }
@@ -0,0 +1,31 @@
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.ReturnChatAudioReconstructionStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatAudioReconstructionStatus = core.serialization.enum_(["QUEUED", "IN_PROGRESS", "COMPLETE", "ERROR", "CANCELLED"]);
@@ -0,0 +1,21 @@
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 { ReturnChatGroupPagedAudioReconstructionsPaginationDirection } from "./ReturnChatGroupPagedAudioReconstructionsPaginationDirection";
8
+ import { ReturnChatAudioReconstruction } from "./ReturnChatAudioReconstruction";
9
+ export declare const ReturnChatGroupPagedAudioReconstructions: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnChatGroupPagedAudioReconstructions.Raw, Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructions>;
10
+ export declare namespace ReturnChatGroupPagedAudioReconstructions {
11
+ interface Raw {
12
+ id: string;
13
+ user_id: string;
14
+ num_chats: number;
15
+ page_number: number;
16
+ page_size: number;
17
+ total_pages: number;
18
+ pagination_direction: ReturnChatGroupPagedAudioReconstructionsPaginationDirection.Raw;
19
+ audio_reconstructions_page: ReturnChatAudioReconstruction.Raw[];
20
+ }
21
+ }
@@ -0,0 +1,42 @@
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.ReturnChatGroupPagedAudioReconstructions = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const ReturnChatGroupPagedAudioReconstructionsPaginationDirection_1 = require("./ReturnChatGroupPagedAudioReconstructionsPaginationDirection");
32
+ const ReturnChatAudioReconstruction_1 = require("./ReturnChatAudioReconstruction");
33
+ exports.ReturnChatGroupPagedAudioReconstructions = core.serialization.object({
34
+ id: core.serialization.string(),
35
+ userId: core.serialization.property("user_id", core.serialization.string()),
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
+ totalPages: core.serialization.property("total_pages", core.serialization.number()),
40
+ paginationDirection: core.serialization.property("pagination_direction", ReturnChatGroupPagedAudioReconstructionsPaginationDirection_1.ReturnChatGroupPagedAudioReconstructionsPaginationDirection),
41
+ audioReconstructionsPage: core.serialization.property("audio_reconstructions_page", core.serialization.list(ReturnChatAudioReconstruction_1.ReturnChatAudioReconstruction)),
42
+ });
@@ -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 ReturnChatGroupPagedAudioReconstructionsPaginationDirection: core.serialization.Schema<serializers.empathicVoice.ReturnChatGroupPagedAudioReconstructionsPaginationDirection.Raw, Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructionsPaginationDirection>;
8
+ export declare namespace ReturnChatGroupPagedAudioReconstructionsPaginationDirection {
9
+ type Raw = "ASC" | "DESC";
10
+ }
@@ -0,0 +1,31 @@
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.ReturnChatGroupPagedAudioReconstructionsPaginationDirection = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnChatGroupPagedAudioReconstructionsPaginationDirection = core.serialization.enum_(["ASC", "DESC"]);
@@ -5,11 +5,12 @@ import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { ReturnLanguageModelModelProvider } from "./ReturnLanguageModelModelProvider";
8
+ import { ReturnLanguageModelModelResource } from "./ReturnLanguageModelModelResource";
8
9
  export declare const ReturnLanguageModel: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnLanguageModel.Raw, Hume.empathicVoice.ReturnLanguageModel>;
9
10
  export declare namespace ReturnLanguageModel {
10
11
  interface Raw {
11
12
  model_provider?: ReturnLanguageModelModelProvider.Raw | null;
12
- model_resource?: string | null;
13
+ model_resource?: ReturnLanguageModelModelResource.Raw | null;
13
14
  temperature?: number | null;
14
15
  }
15
16
  }
@@ -29,8 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnLanguageModel = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  const ReturnLanguageModelModelProvider_1 = require("./ReturnLanguageModelModelProvider");
32
+ const ReturnLanguageModelModelResource_1 = require("./ReturnLanguageModelModelResource");
32
33
  exports.ReturnLanguageModel = core.serialization.object({
33
34
  modelProvider: core.serialization.property("model_provider", ReturnLanguageModelModelProvider_1.ReturnLanguageModelModelProvider.optional()),
34
- modelResource: core.serialization.property("model_resource", core.serialization.string().optional()),
35
+ modelResource: core.serialization.property("model_resource", ReturnLanguageModelModelResource_1.ReturnLanguageModelModelResource.optional()),
35
36
  temperature: core.serialization.number().optional(),
36
37
  });
@@ -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 ReturnLanguageModelModelResource: core.serialization.Schema<serializers.empathicVoice.ReturnLanguageModelModelResource.Raw, Hume.empathicVoice.ReturnLanguageModelModelResource>;
8
+ export declare namespace ReturnLanguageModelModelResource {
9
+ type Raw = "claude-3-5-sonnet-latest" | "claude-3-5-sonnet-20240620" | "claude-3-opus-20240229" | "claude-3-sonnet-20240229" | "claude-3-haiku-20240307" | "claude-2.1" | "claude-instant-1.2" | "gemini-1.5-pro" | "gemini-1.5-flash" | "gemini-1.5-pro-002" | "gemini-1.5-flash-002" | "gpt-4-turbo-preview" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo" | "gpt-4o" | "gpt-4o-mini" | "gemma-7b-it" | "llama3-8b-8192" | "llama3-70b-8192" | "llama-3.1-70b-versatile" | "llama-3.1-8b-instant" | "accounts/fireworks/models/mixtral-8x7b-instruct" | "accounts/fireworks/models/llama-v3p1-405b-instruct" | "accounts/fireworks/models/llama-v3p1-70b-instruct" | "accounts/fireworks/models/llama-v3p1-8b-instruct" | "ellm";
10
+ }
@@ -0,0 +1,58 @@
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.ReturnLanguageModelModelResource = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnLanguageModelModelResource = core.serialization.enum_([
32
+ "claude-3-5-sonnet-latest",
33
+ "claude-3-5-sonnet-20240620",
34
+ "claude-3-opus-20240229",
35
+ "claude-3-sonnet-20240229",
36
+ "claude-3-haiku-20240307",
37
+ "claude-2.1",
38
+ "claude-instant-1.2",
39
+ "gemini-1.5-pro",
40
+ "gemini-1.5-flash",
41
+ "gemini-1.5-pro-002",
42
+ "gemini-1.5-flash-002",
43
+ "gpt-4-turbo-preview",
44
+ "gpt-3.5-turbo-0125",
45
+ "gpt-3.5-turbo",
46
+ "gpt-4o",
47
+ "gpt-4o-mini",
48
+ "gemma-7b-it",
49
+ "llama3-8b-8192",
50
+ "llama3-70b-8192",
51
+ "llama-3.1-70b-versatile",
52
+ "llama-3.1-8b-instant",
53
+ "accounts/fireworks/models/mixtral-8x7b-instruct",
54
+ "accounts/fireworks/models/llama-v3p1-405b-instruct",
55
+ "accounts/fireworks/models/llama-v3p1-70b-instruct",
56
+ "accounts/fireworks/models/llama-v3p1-8b-instruct",
57
+ "ellm",
58
+ ]);
@@ -4,11 +4,12 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Hume from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { ReturnVoiceProvider } from "./ReturnVoiceProvider";
7
8
  import { ReturnCustomVoice } from "./ReturnCustomVoice";
8
9
  export declare const ReturnVoice: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnVoice.Raw, Hume.empathicVoice.ReturnVoice>;
9
10
  export declare namespace ReturnVoice {
10
11
  interface Raw {
11
- provider: "HUME_AI";
12
+ provider: ReturnVoiceProvider.Raw;
12
13
  name?: string | null;
13
14
  custom_voice?: ReturnCustomVoice.Raw | null;
14
15
  }
@@ -28,9 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ReturnVoice = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
+ const ReturnVoiceProvider_1 = require("./ReturnVoiceProvider");
31
32
  const ReturnCustomVoice_1 = require("./ReturnCustomVoice");
32
33
  exports.ReturnVoice = core.serialization.object({
33
- provider: core.serialization.stringLiteral("HUME_AI"),
34
+ provider: ReturnVoiceProvider_1.ReturnVoiceProvider,
34
35
  name: core.serialization.string().optional(),
35
36
  customVoice: core.serialization.property("custom_voice", ReturnCustomVoice_1.ReturnCustomVoice.optional()),
36
37
  });
@@ -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 ReturnVoiceProvider: core.serialization.Schema<serializers.empathicVoice.ReturnVoiceProvider.Raw, Hume.empathicVoice.ReturnVoiceProvider>;
8
+ export declare namespace ReturnVoiceProvider {
9
+ type Raw = "HUME_AI" | "CUSTOM_VOICE";
10
+ }
@@ -0,0 +1,31 @@
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.ReturnVoiceProvider = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.ReturnVoiceProvider = core.serialization.enum_(["HUME_AI", "CUSTOM_VOICE"]);
@@ -17,12 +17,14 @@ export * from "./PostedEllmModel";
17
17
  export * from "./PostedEventMessageSpec";
18
18
  export * from "./PostedEventMessageSpecs";
19
19
  export * from "./PostedLanguageModelModelProvider";
20
+ export * from "./PostedLanguageModelModelResource";
20
21
  export * from "./PostedLanguageModel";
21
22
  export * from "./PostedTimeoutSpec";
22
23
  export * from "./PostedTimeoutSpecsInactivity";
23
24
  export * from "./PostedTimeoutSpecsMaxDuration";
24
25
  export * from "./PostedTimeoutSpecs";
25
26
  export * from "./PostedUserDefinedToolSpec";
27
+ export * from "./PostedVoiceProvider";
26
28
  export * from "./PostedVoice";
27
29
  export * from "./ReturnBuiltinToolToolType";
28
30
  export * from "./ReturnBuiltinTool";
@@ -31,9 +33,11 @@ export * from "./ReturnEllmModel";
31
33
  export * from "./ReturnEventMessageSpec";
32
34
  export * from "./ReturnEventMessageSpecs";
33
35
  export * from "./ReturnLanguageModelModelProvider";
36
+ export * from "./ReturnLanguageModelModelResource";
34
37
  export * from "./ReturnLanguageModel";
35
38
  export * from "./ReturnTimeoutSpec";
36
39
  export * from "./ReturnTimeoutSpecs";
40
+ export * from "./ReturnVoiceProvider";
37
41
  export * from "./ReturnVoice";
38
42
  export * from "./ReturnPagedUserDefinedTools";
39
43
  export * from "./ReturnPagedPrompts";
@@ -50,6 +54,8 @@ export * from "./ReturnChatEvent";
50
54
  export * from "./ReturnChatPagedEventsStatus";
51
55
  export * from "./ReturnChatPagedEventsPaginationDirection";
52
56
  export * from "./ReturnChatPagedEvents";
57
+ export * from "./ReturnChatAudioReconstructionStatus";
58
+ export * from "./ReturnChatAudioReconstruction";
53
59
  export * from "./ReturnActiveChatCount";
54
60
  export * from "./ReturnActiveChatCountPerTag";
55
61
  export * from "./ReturnChatGroup";
@@ -59,6 +65,8 @@ export * from "./ReturnChatGroupPagedChatsPaginationDirection";
59
65
  export * from "./ReturnChatGroupPagedChats";
60
66
  export * from "./ReturnChatGroupPagedEventsPaginationDirection";
61
67
  export * from "./ReturnChatGroupPagedEvents";
68
+ export * from "./ReturnChatGroupPagedAudioReconstructionsPaginationDirection";
69
+ export * from "./ReturnChatGroupPagedAudioReconstructions";
62
70
  export * from "./PostedPromptSpec";
63
71
  export * from "./AssistantInput";
64
72
  export * from "./AudioConfiguration";
@@ -33,12 +33,14 @@ __exportStar(require("./PostedEllmModel"), exports);
33
33
  __exportStar(require("./PostedEventMessageSpec"), exports);
34
34
  __exportStar(require("./PostedEventMessageSpecs"), exports);
35
35
  __exportStar(require("./PostedLanguageModelModelProvider"), exports);
36
+ __exportStar(require("./PostedLanguageModelModelResource"), exports);
36
37
  __exportStar(require("./PostedLanguageModel"), exports);
37
38
  __exportStar(require("./PostedTimeoutSpec"), exports);
38
39
  __exportStar(require("./PostedTimeoutSpecsInactivity"), exports);
39
40
  __exportStar(require("./PostedTimeoutSpecsMaxDuration"), exports);
40
41
  __exportStar(require("./PostedTimeoutSpecs"), exports);
41
42
  __exportStar(require("./PostedUserDefinedToolSpec"), exports);
43
+ __exportStar(require("./PostedVoiceProvider"), exports);
42
44
  __exportStar(require("./PostedVoice"), exports);
43
45
  __exportStar(require("./ReturnBuiltinToolToolType"), exports);
44
46
  __exportStar(require("./ReturnBuiltinTool"), exports);
@@ -47,9 +49,11 @@ __exportStar(require("./ReturnEllmModel"), exports);
47
49
  __exportStar(require("./ReturnEventMessageSpec"), exports);
48
50
  __exportStar(require("./ReturnEventMessageSpecs"), exports);
49
51
  __exportStar(require("./ReturnLanguageModelModelProvider"), exports);
52
+ __exportStar(require("./ReturnLanguageModelModelResource"), exports);
50
53
  __exportStar(require("./ReturnLanguageModel"), exports);
51
54
  __exportStar(require("./ReturnTimeoutSpec"), exports);
52
55
  __exportStar(require("./ReturnTimeoutSpecs"), exports);
56
+ __exportStar(require("./ReturnVoiceProvider"), exports);
53
57
  __exportStar(require("./ReturnVoice"), exports);
54
58
  __exportStar(require("./ReturnPagedUserDefinedTools"), exports);
55
59
  __exportStar(require("./ReturnPagedPrompts"), exports);
@@ -66,6 +70,8 @@ __exportStar(require("./ReturnChatEvent"), exports);
66
70
  __exportStar(require("./ReturnChatPagedEventsStatus"), exports);
67
71
  __exportStar(require("./ReturnChatPagedEventsPaginationDirection"), exports);
68
72
  __exportStar(require("./ReturnChatPagedEvents"), exports);
73
+ __exportStar(require("./ReturnChatAudioReconstructionStatus"), exports);
74
+ __exportStar(require("./ReturnChatAudioReconstruction"), exports);
69
75
  __exportStar(require("./ReturnActiveChatCount"), exports);
70
76
  __exportStar(require("./ReturnActiveChatCountPerTag"), exports);
71
77
  __exportStar(require("./ReturnChatGroup"), exports);
@@ -75,6 +81,8 @@ __exportStar(require("./ReturnChatGroupPagedChatsPaginationDirection"), exports)
75
81
  __exportStar(require("./ReturnChatGroupPagedChats"), exports);
76
82
  __exportStar(require("./ReturnChatGroupPagedEventsPaginationDirection"), exports);
77
83
  __exportStar(require("./ReturnChatGroupPagedEvents"), exports);
84
+ __exportStar(require("./ReturnChatGroupPagedAudioReconstructionsPaginationDirection"), exports);
85
+ __exportStar(require("./ReturnChatGroupPagedAudioReconstructions"), exports);
78
86
  __exportStar(require("./PostedPromptSpec"), exports);
79
87
  __exportStar(require("./AssistantInput"), exports);
80
88
  __exportStar(require("./AudioConfiguration"), 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/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.3";
1
+ export declare const SDK_VERSION = "0.9.4";
package/dist/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.3";
4
+ exports.SDK_VERSION = "0.9.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hume",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/HumeAI/hume-typescript-sdk",
6
6
  "main": "./index.js",