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.
- package/.mock/definition/empathic-voice/__package__.yml +308 -14
- package/.mock/definition/empathic-voice/chat.yml +10 -0
- package/.mock/definition/empathic-voice/chatGroups.yml +25 -23
- package/.mock/definition/empathic-voice/chats.yml +14 -24
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +8 -2
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -6
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -1
- package/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -2
- package/api/resources/empathicVoice/resources/chats/client/Client.js +7 -5
- package/api/resources/empathicVoice/resources/configs/client/Client.d.ts +4 -4
- package/api/resources/empathicVoice/resources/configs/client/Client.js +13 -13
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
- package/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +35 -0
- package/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -0
- package/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/api/resources/empathicVoice/types/PostedVoice.d.ts +2 -2
- package/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +11 -0
- package/api/resources/empathicVoice/types/PostedVoiceProvider.js +10 -0
- package/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +35 -0
- package/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +5 -0
- package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +24 -0
- package/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +13 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +37 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +5 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +13 -0
- package/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +10 -0
- package/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -1
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +37 -0
- package/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +36 -0
- package/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnVoice.d.ts +2 -2
- package/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +11 -0
- package/api/resources/empathicVoice/types/ReturnVoiceProvider.js +10 -0
- package/api/resources/empathicVoice/types/UserMessage.d.ts +2 -0
- package/api/resources/empathicVoice/types/index.d.ts +8 -0
- package/api/resources/empathicVoice/types/index.js +8 -0
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.d.ts +8 -2
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +12 -6
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetAudioRequest.d.ts +5 -1
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.d.ts +4 -2
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +7 -5
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.d.ts +4 -4
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +13 -13
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfig.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/PostedConfigVersion.d.ts +2 -2
- package/dist/api/resources/empathicVoice/resources/customVoices/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/types/PostedLanguageModel.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +35 -0
- package/dist/api/resources/empathicVoice/types/PostedLanguageModelModelResource.js +34 -0
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecs.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsInactivity.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedTimeoutSpecsMaxDuration.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/PostedVoice.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/PostedVoiceProvider.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/PostedVoiceProvider.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +35 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +24 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +37 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +5 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +13 -0
- package/dist/api/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +10 -0
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModel.d.ts +1 -1
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +37 -0
- package/dist/api/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +36 -0
- package/dist/api/resources/empathicVoice/types/ReturnTimeoutSpecs.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnVoice.d.ts +2 -2
- package/dist/api/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +11 -0
- package/dist/api/resources/empathicVoice/types/ReturnVoiceProvider.js +10 -0
- package/dist/api/resources/empathicVoice/types/UserMessage.d.ts +2 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +8 -0
- package/dist/api/resources/empathicVoice/types/index.js +8 -0
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModel.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +58 -0
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/PostedVoice.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +19 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +40 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +21 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +42 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +60 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnVoice.js +2 -1
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +10 -0
- package/dist/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +31 -0
- package/dist/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/dist/serialization/resources/empathicVoice/types/UserMessage.js +1 -0
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +8 -0
- package/dist/serialization/resources/empathicVoice/types/index.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +42 -8
- package/serialization/resources/empathicVoice/types/PostedLanguageModel.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/PostedLanguageModel.js +2 -1
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.js +58 -0
- package/serialization/resources/empathicVoice/types/PostedVoice.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/PostedVoice.js +2 -1
- package/serialization/resources/empathicVoice/types/PostedVoiceProvider.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/PostedVoiceProvider.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.d.ts +19 -0
- package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstruction.js +40 -0
- package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatAudioReconstructionStatus.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.d.ts +21 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructions.js +42 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnChatGroupPagedAudioReconstructionsPaginationDirection.js +31 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModel.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnLanguageModelModelResource.js +60 -0
- package/serialization/resources/empathicVoice/types/ReturnVoice.d.ts +2 -1
- package/serialization/resources/empathicVoice/types/ReturnVoice.js +2 -1
- package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.d.ts +10 -0
- package/serialization/resources/empathicVoice/types/ReturnVoiceProvider.js +31 -0
- package/serialization/resources/empathicVoice/types/UserMessage.d.ts +1 -0
- package/serialization/resources/empathicVoice/types/UserMessage.js +1 -0
- package/serialization/resources/empathicVoice/types/index.d.ts +8 -0
- package/serialization/resources/empathicVoice/types/index.js +8 -0
- package/version.d.ts +1 -1
- 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
|
|
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
|
|
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.
|
|
10
|
-
provider:
|
|
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,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,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?:
|
|
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
|
|
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
|
|
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.
|
|
10
|
-
provider:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
@@ -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 { PostedLanguageModelModelProvider } from "./PostedLanguageModelModelProvider";
|
|
8
|
+
import { PostedLanguageModelModelResource } from "./PostedLanguageModelModelResource";
|
|
8
9
|
export declare const PostedLanguageModel: core.serialization.ObjectSchema<serializers.empathicVoice.PostedLanguageModel.Raw, Hume.empathicVoice.PostedLanguageModel>;
|
|
9
10
|
export declare namespace PostedLanguageModel {
|
|
10
11
|
interface Raw {
|
|
11
12
|
model_provider?: PostedLanguageModelModelProvider.Raw | null;
|
|
12
|
-
model_resource?:
|
|
13
|
+
model_resource?: PostedLanguageModelModelResource.Raw | null;
|
|
13
14
|
temperature?: number | null;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -29,8 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.PostedLanguageModel = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const PostedLanguageModelModelProvider_1 = require("./PostedLanguageModelModelProvider");
|
|
32
|
+
const PostedLanguageModelModelResource_1 = require("./PostedLanguageModelModelResource");
|
|
32
33
|
exports.PostedLanguageModel = core.serialization.object({
|
|
33
34
|
modelProvider: core.serialization.property("model_provider", PostedLanguageModelModelProvider_1.PostedLanguageModelModelProvider.optional()),
|
|
34
|
-
modelResource: core.serialization.property("model_resource",
|
|
35
|
+
modelResource: core.serialization.property("model_resource", PostedLanguageModelModelResource_1.PostedLanguageModelModelResource.optional()),
|
|
35
36
|
temperature: core.serialization.number().optional(),
|
|
36
37
|
});
|
package/dist/serialization/resources/empathicVoice/types/PostedLanguageModelModelResource.d.ts
ADDED
|
@@ -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 PostedLanguageModelModelResource: core.serialization.Schema<serializers.empathicVoice.PostedLanguageModelModelResource.Raw, Hume.empathicVoice.PostedLanguageModelModelResource>;
|
|
8
|
+
export declare namespace PostedLanguageModelModelResource {
|
|
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.PostedLanguageModelModelResource = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.PostedLanguageModelModelResource = 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 { PostedVoiceProvider } from "./PostedVoiceProvider";
|
|
7
8
|
import { PostedCustomVoice } from "./PostedCustomVoice";
|
|
8
9
|
export declare const PostedVoice: core.serialization.ObjectSchema<serializers.empathicVoice.PostedVoice.Raw, Hume.empathicVoice.PostedVoice>;
|
|
9
10
|
export declare namespace PostedVoice {
|
|
10
11
|
interface Raw {
|
|
11
|
-
provider:
|
|
12
|
+
provider: PostedVoiceProvider.Raw;
|
|
12
13
|
name?: string | null;
|
|
13
14
|
custom_voice?: PostedCustomVoice.Raw | null;
|
|
14
15
|
}
|