hume 0.9.3 → 0.9.5

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 (146) hide show
  1. package/.mock/definition/empathic-voice/__package__.yml +308 -14
  2. package/.mock/definition/empathic-voice/chat.yml +10 -0
  3. package/.mock/definition/empathic-voice/chatGroups.yml +25 -23
  4. package/.mock/definition/empathic-voice/chats.yml +14 -24
  5. package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +8 -2
  6. package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -6
  7. package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -1
  8. package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -2
  9. package/api/resources/empathicVoice/resources/chats/client/Client.js +7 -5
  10. package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +4 -4
  11. package/api/resources/empathicVoice/resources/configs/client/Client.js +13 -13
  12. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
  13. package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
  14. package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
  15. package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
  16. package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
  17. package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -1
  18. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +35 -0
  19. package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -0
  20. package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +2 -2
  21. package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
  22. package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
  23. package/api/resources/empathicVoice/types/PostedVoice.d.ts +2 -2
  24. package/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +11 -0
  25. package/api/resources/empathicVoice/types/PostedVoiceProvider.js +10 -0
  26. package/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +35 -0
  27. package/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +5 -0
  28. package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +24 -0
  29. package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +13 -0
  30. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +37 -0
  31. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +5 -0
  32. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +13 -0
  33. package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +10 -0
  34. package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -1
  35. package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +37 -0
  36. package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +36 -0
  37. package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +2 -2
  38. package/api/resources/empathicVoice/types/ReturnVoice.d.ts +2 -2
  39. package/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +11 -0
  40. package/api/resources/empathicVoice/types/ReturnVoiceProvider.js +10 -0
  41. package/api/resources/empathicVoice/types/UserMessage.d.ts +2 -0
  42. package/api/resources/empathicVoice/types/index.d.ts +8 -0
  43. package/api/resources/empathicVoice/types/index.js +8 -0
  44. package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  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 +37 -0
  76. package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +36 -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/UserMessage.d.ts +2 -0
  82. package/dist/api/resources/empathicVoice/types/index.d.ts +8 -0
  83. package/dist/api/resources/empathicVoice/types/index.js +8 -0
  84. package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
  85. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -1
  86. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +2 -1
  87. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +10 -0
  88. package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +58 -0
  89. package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +2 -1
  90. package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +2 -1
  91. package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.d.ts +10 -0
  92. package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +31 -0
  93. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +19 -0
  94. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +40 -0
  95. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +10 -0
  96. package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +31 -0
  97. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +21 -0
  98. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +42 -0
  99. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +10 -0
  100. package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +31 -0
  101. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  102. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  103. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +10 -0
  104. package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +60 -0
  105. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +2 -1
  106. package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +2 -1
  107. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +10 -0
  108. package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +31 -0
  109. package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  110. package/dist/serialization/resources/empathicVoice/types/UserMessage.js +1 -0
  111. package/dist/serialization/resources/empathicVoice/types/index.d.ts +8 -0
  112. package/dist/serialization/resources/empathicVoice/types/index.js +8 -0
  113. package/dist/version.d.ts +1 -1
  114. package/dist/version.js +1 -1
  115. package/package.json +1 -1
  116. package/reference.md +42 -8
  117. package/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -1
  118. package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +2 -1
  119. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +10 -0
  120. package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +58 -0
  121. package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +2 -1
  122. package/serialization/resources/empathicVoice/types/PostedVoice.js +2 -1
  123. package/serialization/resources/empathicVoice/types/PostedVoiceProvider.d.ts +10 -0
  124. package/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +31 -0
  125. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +19 -0
  126. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +40 -0
  127. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +10 -0
  128. package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +31 -0
  129. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +21 -0
  130. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +42 -0
  131. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +10 -0
  132. package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +31 -0
  133. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
  134. package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
  135. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +10 -0
  136. package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +60 -0
  137. package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +2 -1
  138. package/serialization/resources/empathicVoice/types/ReturnVoice.js +2 -1
  139. package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +10 -0
  140. package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +31 -0
  141. package/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -0
  142. package/serialization/resources/empathicVoice/types/UserMessage.js +1 -0
  143. package/serialization/resources/empathicVoice/types/index.d.ts +8 -0
  144. package/serialization/resources/empathicVoice/types/index.js +8 -0
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
6
6
  *
7
- * Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
7
+ * Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
8
8
  */
9
9
  export interface PostedTimeoutSpecsInactivity {
10
10
  /**
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
6
6
  *
7
- * Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
7
+ * Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
8
8
  */
9
9
  export interface PostedTimeoutSpecsMaxDuration {
10
10
  /**
@@ -6,8 +6,8 @@ import * as Hume from "../../../index";
6
6
  * A Voice specification posted to the server
7
7
  */
8
8
  export interface PostedVoice {
9
- /** The provider of the voice to use. Currently, only `HUME_AI` is supported as the voice provider. */
10
- provider: "HUME_AI";
9
+ /** The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`. */
10
+ provider: Hume.empathicVoice.PostedVoiceProvider;
11
11
  /**
12
12
  * Specifies the name of the voice to use.
13
13
  *
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`.
6
+ */
7
+ export declare type PostedVoiceProvider = "HUME_AI" | "CUSTOM_VOICE";
8
+ export declare const PostedVoiceProvider: {
9
+ readonly HumeAi: "HUME_AI";
10
+ readonly CustomVoice: "CUSTOM_VOICE";
11
+ };
@@ -0,0 +1,10 @@
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.PostedVoiceProvider = void 0;
7
+ exports.PostedVoiceProvider = {
8
+ HumeAi: "HUME_AI",
9
+ CustomVoice: "CUSTOM_VOICE",
10
+ };
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../index";
5
+ /**
6
+ * List of chat audio reconstructions returned for the specified page number and page size.
7
+ */
8
+ export interface ReturnChatAudioReconstruction {
9
+ /** Identifier for the chat. Formatted as a UUID. */
10
+ id: string;
11
+ /** Identifier for the user that owns this chat. Formatted as a UUID. */
12
+ userId: string;
13
+ /**
14
+ * Indicates the current state of the audio reconstruction job. There are five possible statuses:
15
+ *
16
+ * - `QUEUED`: The reconstruction job is waiting to be processed.
17
+ *
18
+ * - `IN_PROGRESS`: The reconstruction is currently being processed.
19
+ *
20
+ * - `COMPLETE`: The audio reconstruction is finished and ready for download.
21
+ *
22
+ * - `ERROR`: An error occurred during the reconstruction process.
23
+ *
24
+ * - `CANCELED`: The reconstruction job has been canceled.
25
+ */
26
+ status: Hume.empathicVoice.ReturnChatAudioReconstructionStatus;
27
+ /** Name of the chat audio reconstruction file. */
28
+ filename?: string;
29
+ /** The timestamp of the most recent status change for this audio reconstruction, formatted milliseconds since the Unix epoch. */
30
+ modifiedAt?: number;
31
+ /** Signed URL used to download the chat audio reconstruction file. */
32
+ signedAudioUrl?: string;
33
+ /** The timestamp when the signed URL will expire, formatted as a Unix epoch milliseconds. */
34
+ signedUrlExpirationTimestampMillis?: number;
35
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the current state of the audio reconstruction job. There are five possible statuses:
6
+ *
7
+ * - `QUEUED`: The reconstruction job is waiting to be processed.
8
+ *
9
+ * - `IN_PROGRESS`: The reconstruction is currently being processed.
10
+ *
11
+ * - `COMPLETE`: The audio reconstruction is finished and ready for download.
12
+ *
13
+ * - `ERROR`: An error occurred during the reconstruction process.
14
+ *
15
+ * - `CANCELED`: The reconstruction job has been canceled.
16
+ */
17
+ export declare type ReturnChatAudioReconstructionStatus = "QUEUED" | "IN_PROGRESS" | "COMPLETE" | "ERROR" | "CANCELLED";
18
+ export declare const ReturnChatAudioReconstructionStatus: {
19
+ readonly Queued: "QUEUED";
20
+ readonly InProgress: "IN_PROGRESS";
21
+ readonly Complete: "COMPLETE";
22
+ readonly Error: "ERROR";
23
+ readonly Cancelled: "CANCELLED";
24
+ };
@@ -0,0 +1,13 @@
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.ReturnChatAudioReconstructionStatus = void 0;
7
+ exports.ReturnChatAudioReconstructionStatus = {
8
+ Queued: "QUEUED",
9
+ InProgress: "IN_PROGRESS",
10
+ Complete: "COMPLETE",
11
+ Error: "ERROR",
12
+ Cancelled: "CANCELLED",
13
+ };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Hume from "../../../index";
5
+ /**
6
+ * A paginated list of chat reconstructions for a particular chatgroup
7
+ */
8
+ export interface ReturnChatGroupPagedAudioReconstructions {
9
+ /** Identifier for the chat group. Formatted as a UUID. */
10
+ id: string;
11
+ /** Identifier for the user that owns this chat. Formatted as a UUID. */
12
+ userId: string;
13
+ /** Total number of chats in this chatgroup */
14
+ numChats: number;
15
+ /**
16
+ * The page number of the returned list.
17
+ *
18
+ * This value corresponds to the `page_number` parameter specified in the request. Pagination uses zero-based indexing.
19
+ */
20
+ pageNumber: number;
21
+ /**
22
+ * The maximum number of items returned per page.
23
+ *
24
+ * This value corresponds to the `page_size` parameter specified in the request.
25
+ */
26
+ pageSize: number;
27
+ /** The total number of pages in the collection. */
28
+ totalPages: number;
29
+ /**
30
+ * Indicates the order in which the paginated results are presented, based on their creation date.
31
+ *
32
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
33
+ */
34
+ paginationDirection: Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructionsPaginationDirection;
35
+ /** List of chat audio reconstructions returned for the specified page number and page size. */
36
+ audioReconstructionsPage: Hume.empathicVoice.ReturnChatAudioReconstruction[];
37
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Indicates the order in which the paginated results are presented, based on their creation date.
6
+ *
7
+ * It shows `ASC` for ascending order (chronological, with the oldest records first) or `DESC` for descending order (reverse-chronological, with the newest records first). This value corresponds to the `ascending_order` query parameter used in the request.
8
+ */
9
+ export declare type ReturnChatGroupPagedAudioReconstructionsPaginationDirection = "ASC" | "DESC";
10
+ export declare const ReturnChatGroupPagedAudioReconstructionsPaginationDirection: {
11
+ readonly Asc: "ASC";
12
+ readonly Desc: "DESC";
13
+ };
@@ -0,0 +1,10 @@
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.ReturnChatGroupPagedAudioReconstructionsPaginationDirection = void 0;
7
+ exports.ReturnChatGroupPagedAudioReconstructionsPaginationDirection = {
8
+ Asc: "ASC",
9
+ Desc: "DESC",
10
+ };
@@ -9,7 +9,7 @@ export interface ReturnLanguageModel {
9
9
  /** The provider of the supplemental language model. */
10
10
  modelProvider?: Hume.empathicVoice.ReturnLanguageModelModelProvider;
11
11
  /** String that specifies the language model to use with `model_provider`. */
12
- modelResource?: string;
12
+ modelResource?: Hume.empathicVoice.ReturnLanguageModelModelResource;
13
13
  /**
14
14
  * The model temperature, with values between 0 to 1 (inclusive).
15
15
  *
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * String that specifies the language model to use with `model_provider`.
6
+ */
7
+ export declare type ReturnLanguageModelModelResource = "claude-3-5-sonnet-latest" | "claude-3-5-haiku-latest" | "claude-3-5-sonnet-20240620" | "claude-3-5-haiku-20241022" | "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";
8
+ export declare const ReturnLanguageModelModelResource: {
9
+ readonly Claude35SonnetLatest: "claude-3-5-sonnet-latest";
10
+ readonly Claude35HaikuLatest: "claude-3-5-haiku-latest";
11
+ readonly Claude35Sonnet20240620: "claude-3-5-sonnet-20240620";
12
+ readonly Claude35Haiku20241022: "claude-3-5-haiku-20241022";
13
+ readonly Claude3Opus20240229: "claude-3-opus-20240229";
14
+ readonly Claude3Sonnet20240229: "claude-3-sonnet-20240229";
15
+ readonly Claude3Haiku20240307: "claude-3-haiku-20240307";
16
+ readonly Claude21: "claude-2.1";
17
+ readonly ClaudeInstant12: "claude-instant-1.2";
18
+ readonly Gemini15Pro: "gemini-1.5-pro";
19
+ readonly Gemini15Flash: "gemini-1.5-flash";
20
+ readonly Gemini15Pro002: "gemini-1.5-pro-002";
21
+ readonly Gemini15Flash002: "gemini-1.5-flash-002";
22
+ readonly Gpt4TurboPreview: "gpt-4-turbo-preview";
23
+ readonly Gpt35Turbo0125: "gpt-3.5-turbo-0125";
24
+ readonly Gpt35Turbo: "gpt-3.5-turbo";
25
+ readonly Gpt4O: "gpt-4o";
26
+ readonly Gpt4OMini: "gpt-4o-mini";
27
+ readonly Gemma7BIt: "gemma-7b-it";
28
+ readonly Llama38B8192: "llama3-8b-8192";
29
+ readonly Llama370B8192: "llama3-70b-8192";
30
+ readonly Llama3170BVersatile: "llama-3.1-70b-versatile";
31
+ readonly Llama318BInstant: "llama-3.1-8b-instant";
32
+ readonly AccountsFireworksModelsMixtral8X7BInstruct: "accounts/fireworks/models/mixtral-8x7b-instruct";
33
+ readonly AccountsFireworksModelsLlamaV3P1405BInstruct: "accounts/fireworks/models/llama-v3p1-405b-instruct";
34
+ readonly AccountsFireworksModelsLlamaV3P170BInstruct: "accounts/fireworks/models/llama-v3p1-70b-instruct";
35
+ readonly AccountsFireworksModelsLlamaV3P18BInstruct: "accounts/fireworks/models/llama-v3p1-8b-instruct";
36
+ readonly Ellm: "ellm";
37
+ };
@@ -0,0 +1,36 @@
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.ReturnLanguageModelModelResource = void 0;
7
+ exports.ReturnLanguageModelModelResource = {
8
+ Claude35SonnetLatest: "claude-3-5-sonnet-latest",
9
+ Claude35HaikuLatest: "claude-3-5-haiku-latest",
10
+ Claude35Sonnet20240620: "claude-3-5-sonnet-20240620",
11
+ Claude35Haiku20241022: "claude-3-5-haiku-20241022",
12
+ Claude3Opus20240229: "claude-3-opus-20240229",
13
+ Claude3Sonnet20240229: "claude-3-sonnet-20240229",
14
+ Claude3Haiku20240307: "claude-3-haiku-20240307",
15
+ Claude21: "claude-2.1",
16
+ ClaudeInstant12: "claude-instant-1.2",
17
+ Gemini15Pro: "gemini-1.5-pro",
18
+ Gemini15Flash: "gemini-1.5-flash",
19
+ Gemini15Pro002: "gemini-1.5-pro-002",
20
+ Gemini15Flash002: "gemini-1.5-flash-002",
21
+ Gpt4TurboPreview: "gpt-4-turbo-preview",
22
+ Gpt35Turbo0125: "gpt-3.5-turbo-0125",
23
+ Gpt35Turbo: "gpt-3.5-turbo",
24
+ Gpt4O: "gpt-4o",
25
+ Gpt4OMini: "gpt-4o-mini",
26
+ Gemma7BIt: "gemma-7b-it",
27
+ Llama38B8192: "llama3-8b-8192",
28
+ Llama370B8192: "llama3-70b-8192",
29
+ Llama3170BVersatile: "llama-3.1-70b-versatile",
30
+ Llama318BInstant: "llama-3.1-8b-instant",
31
+ AccountsFireworksModelsMixtral8X7BInstruct: "accounts/fireworks/models/mixtral-8x7b-instruct",
32
+ AccountsFireworksModelsLlamaV3P1405BInstruct: "accounts/fireworks/models/llama-v3p1-405b-instruct",
33
+ AccountsFireworksModelsLlamaV3P170BInstruct: "accounts/fireworks/models/llama-v3p1-70b-instruct",
34
+ AccountsFireworksModelsLlamaV3P18BInstruct: "accounts/fireworks/models/llama-v3p1-8b-instruct",
35
+ Ellm: "ellm",
36
+ };
@@ -11,13 +11,13 @@ export interface ReturnTimeoutSpecs {
11
11
  /**
12
12
  * Specifies the duration of user inactivity (in seconds) after which the EVI WebSocket connection will be automatically disconnected. Default is 600 seconds (10 minutes).
13
13
  *
14
- * Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
14
+ * Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
15
15
  */
16
16
  inactivity: Hume.empathicVoice.ReturnTimeoutSpec;
17
17
  /**
18
18
  * Specifies the maximum allowed duration (in seconds) for an EVI WebSocket connection before it is automatically disconnected. Default is 1,800 seconds (30 minutes).
19
19
  *
20
- * Accepts a minimum value of 1 second and a maximum value of 1,800 seconds.
20
+ * Accepts a minimum value of 30 seconds and a maximum value of 1,800 seconds.
21
21
  */
22
22
  maxDuration: Hume.empathicVoice.ReturnTimeoutSpec;
23
23
  }
@@ -6,8 +6,8 @@ import * as Hume from "../../../index";
6
6
  * A specific voice specification
7
7
  */
8
8
  export interface ReturnVoice {
9
- /** The provider of the voice to use. Currently, only `HUME_AI` is supported as the voice provider. */
10
- provider: "HUME_AI";
9
+ /** The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`. */
10
+ provider: Hume.empathicVoice.ReturnVoiceProvider;
11
11
  /**
12
12
  * The name of the specified voice.
13
13
  *
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The provider of the voice to use. Supported values are `HUME_AI` and `CUSTOM_VOICE`.
6
+ */
7
+ export declare type ReturnVoiceProvider = "HUME_AI" | "CUSTOM_VOICE";
8
+ export declare const ReturnVoiceProvider: {
9
+ readonly HumeAi: "HUME_AI";
10
+ readonly CustomVoice: "CUSTOM_VOICE";
11
+ };
@@ -0,0 +1,10 @@
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.ReturnVoiceProvider = void 0;
7
+ exports.ReturnVoiceProvider = {
8
+ HumeAi: "HUME_AI",
9
+ CustomVoice: "CUSTOM_VOICE",
10
+ };
@@ -22,4 +22,6 @@ export interface UserMessage {
22
22
  time: Hume.empathicVoice.MillisecondInterval;
23
23
  /** Indicates if this message was inserted into the conversation as text from a [User Input](/reference/empathic-voice-interface-evi/chat/chat#send.User%20Input.text) message. */
24
24
  fromText: boolean;
25
+ /** Indicates if this message contains an immediate and unfinalized transcript of the user’s audio input. If it does, words may be repeated across successive `UserMessage` messages as our transcription model becomes more confident about what was said with additional context. Interim messages are useful to detect if the user is interrupting during audio playback on the client. Even without a finalized transcription, along with [UserInterrupt](/reference/empathic-voice-interface-evi/chat/chat#receive.User%20Interruption.type) messages, interim `UserMessages` are useful for detecting if the user is interrupting during audio playback on the client, signaling to stop playback in your application. Interim `UserMessages` will only be received if the [verbose_transcription](/reference/empathic-voice-interface-evi/chat/chat#request.query.verbose_transcription) query parameter is set to `true` in the handshake request. */
26
+ interim: boolean;
25
27
  }
@@ -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);
@@ -88,7 +88,7 @@ class Batch {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
90
90
  method: "GET",
91
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
91
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
92
92
  contentType: "application/json",
93
93
  queryParameters: _queryParams,
94
94
  requestType: "json",
@@ -143,7 +143,7 @@ class Batch {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
145
145
  method: "POST",
146
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  body: serializers.expressionMeasurement.batch.InferenceBaseRequest.jsonOrThrow(request, {
@@ -197,7 +197,7 @@ class Batch {
197
197
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
198
198
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}`),
199
199
  method: "GET",
200
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
201
201
  contentType: "application/json",
202
202
  requestType: "json",
203
203
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -248,7 +248,7 @@ class Batch {
248
248
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
249
249
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/predictions`),
250
250
  method: "GET",
251
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
251
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
252
  contentType: "application/json",
253
253
  requestType: "json",
254
254
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -293,7 +293,7 @@ class Batch {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
294
294
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/batch/jobs/${encodeURIComponent(id)}/artifacts`),
295
295
  method: "GET",
296
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
296
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
297
297
  contentType: "application/json",
298
298
  requestType: "json",
299
299
  responseType: "streaming",
@@ -349,7 +349,7 @@ class Batch {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/batch/jobs"),
351
351
  method: "POST",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
352
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
353
353
  requestType: "file",
354
354
  duplex: _maybeEncodedRequest.duplex,
355
355
  body: _maybeEncodedRequest.body,
@@ -74,6 +74,8 @@ export declare class ChatGroups {
74
74
  */
75
75
  listChatGroupEvents(id: string, request?: Hume.empathicVoice.ChatGroupsListChatGroupEventsRequest, requestOptions?: ChatGroups.RequestOptions): Promise<Hume.empathicVoice.ReturnChatGroupPagedEvents>;
76
76
  /**
77
+ * Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/empathic-voice-interface-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
78
+ *
77
79
  * @param {string} id - Identifier for a chat. Formatted as a UUID.
78
80
  * @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
79
81
  * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
@@ -81,9 +83,13 @@ export declare class ChatGroups {
81
83
  * @throws {@link Hume.empathicVoice.BadRequestError}
82
84
  *
83
85
  * @example
84
- * await client.empathicVoice.chatGroups.getAudio("id")
86
+ * await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cdfc78", {
87
+ * pageNumber: 0,
88
+ * pageSize: 10,
89
+ * ascendingOrder: true
90
+ * })
85
91
  */
86
- getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroups.RequestOptions): Promise<Hume.empathicVoice.ReturnChatPagedEvents>;
92
+ getAudio(id: string, request?: Hume.empathicVoice.ChatGroupsGetAudioRequest, requestOptions?: ChatGroups.RequestOptions): Promise<Hume.empathicVoice.ReturnChatGroupPagedAudioReconstructions>;
87
93
  protected _getCustomAuthorizationHeaders(): Promise<{
88
94
  "X-Hume-Api-Key": string | undefined;
89
95
  }>;
@@ -85,7 +85,7 @@ class ChatGroups {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, "v0/evi/chat_groups"),
87
87
  method: "GET",
88
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
88
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -165,7 +165,7 @@ class ChatGroups {
165
165
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
166
166
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}`),
167
167
  method: "GET",
168
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
168
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
169
169
  contentType: "application/json",
170
170
  queryParameters: _queryParams,
171
171
  requestType: "json",
@@ -245,7 +245,7 @@ class ChatGroups {
245
245
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
246
246
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/events`),
247
247
  method: "GET",
248
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
248
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
249
249
  contentType: "application/json",
250
250
  queryParameters: _queryParams,
251
251
  requestType: "json",
@@ -293,6 +293,8 @@ class ChatGroups {
293
293
  });
294
294
  }
295
295
  /**
296
+ * Fetches a paginated list of audio for each **Chat** within the specified **Chat Group**. For more details, see our guide on audio reconstruction [here](/docs/empathic-voice-interface-evi/faq#can-i-access-the-audio-of-previous-conversations-with-evi).
297
+ *
296
298
  * @param {string} id - Identifier for a chat. Formatted as a UUID.
297
299
  * @param {Hume.empathicVoice.ChatGroupsGetAudioRequest} request
298
300
  * @param {ChatGroups.RequestOptions} requestOptions - Request-specific configuration.
@@ -300,7 +302,11 @@ class ChatGroups {
300
302
  * @throws {@link Hume.empathicVoice.BadRequestError}
301
303
  *
302
304
  * @example
303
- * await client.empathicVoice.chatGroups.getAudio("id")
305
+ * await client.empathicVoice.chatGroups.getAudio("369846cf-6ad5-404d-905e-a8acb5cdfc78", {
306
+ * pageNumber: 0,
307
+ * pageSize: 10,
308
+ * ascendingOrder: true
309
+ * })
304
310
  */
305
311
  getAudio(id, request = {}, requestOptions) {
306
312
  var _a, _b;
@@ -319,7 +325,7 @@ class ChatGroups {
319
325
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
320
326
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.HumeEnvironment.Production, `v0/evi/chat_groups/${encodeURIComponent(id)}/audio`),
321
327
  method: "GET",
322
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.3", "User-Agent": "hume/0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
328
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.9.5", "User-Agent": "hume/0.9.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
323
329
  contentType: "application/json",
324
330
  queryParameters: _queryParams,
325
331
  requestType: "json",
@@ -328,7 +334,7 @@ class ChatGroups {
328
334
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
329
335
  });
330
336
  if (_response.ok) {
331
- return serializers.empathicVoice.ReturnChatPagedEvents.parseOrThrow(_response.body, {
337
+ return serializers.empathicVoice.ReturnChatGroupPagedAudioReconstructions.parseOrThrow(_response.body, {
332
338
  unrecognizedObjectKeys: "passthrough",
333
339
  allowUnrecognizedUnionMembers: true,
334
340
  allowUnrecognizedEnumValues: true,
@@ -3,7 +3,11 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * pageNumber: 0,
8
+ * pageSize: 10,
9
+ * ascendingOrder: true
10
+ * }
7
11
  */
8
12
  export interface ChatGroupsGetAudioRequest {
9
13
  /**