hume 0.15.6 → 0.15.8
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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/Client.js +4 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/Client.js +4 -1
- package/dist/cjs/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.ts +2 -0
- package/dist/cjs/api/resources/empathicVoice/types/AssistantEnd.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantInput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/AssistantProsody.d.ts +1 -1
- package/dist/cjs/api/resources/empathicVoice/types/AudioInput.d.ts +4 -6
- package/dist/cjs/api/resources/empathicVoice/types/AudioOutput.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ChatMetadata.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ConnectSessionSettings.d.ts +4 -2
- package/dist/cjs/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.ts +19 -7
- package/dist/cjs/api/resources/empathicVoice/types/JsonMessage.d.ts +30 -11
- package/dist/cjs/api/resources/empathicVoice/types/PauseAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ResumeAssistantMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/SessionSettings.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/SubscribeEvent.d.ts +33 -12
- package/dist/cjs/api/resources/empathicVoice/types/ToolCallMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ToolErrorMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/ToolResponseMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserInput.d.ts +2 -6
- package/dist/cjs/api/resources/empathicVoice/types/UserInterruption.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/UserMessage.d.ts +3 -1
- package/dist/cjs/api/resources/empathicVoice/types/WebSocketError.d.ts +3 -1
- package/dist/cjs/api/resources/tts/client/requests/ConvertVoiceFileRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tts/client/requests/ConvertVoiceJsonRequest.d.ts +1 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/Client.js +9 -1
- package/dist/cjs/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/AssistantMessage.d.ts +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/AssistantMessage.js +1 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/ConnectSessionSettings.d.ts +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/ConnectSessionSettings.js +1 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/JsonMessage.d.ts +2 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/JsonMessage.js +2 -0
- package/dist/cjs/serialization/resources/empathicVoice/types/SubscribeEvent.d.ts +2 -1
- package/dist/cjs/serialization/resources/empathicVoice/types/SubscribeEvent.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.d.ts +1 -0
- package/dist/cjs/wrapper/expressionMeasurement/batch/BatchClient.js +9 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/Client.mjs +4 -1
- package/dist/esm/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsGetChatGroupRequest.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/Client.mjs +4 -1
- package/dist/esm/api/resources/empathicVoice/resources/chats/client/requests/ChatsListChatsRequest.d.mts +2 -0
- package/dist/esm/api/resources/empathicVoice/types/AssistantEnd.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantInput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/AssistantProsody.d.mts +1 -1
- package/dist/esm/api/resources/empathicVoice/types/AudioInput.d.mts +4 -6
- package/dist/esm/api/resources/empathicVoice/types/AudioOutput.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ChatMetadata.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ConnectSessionSettings.d.mts +4 -2
- package/dist/esm/api/resources/empathicVoice/types/ControlPlanePublishEvent.d.mts +19 -7
- package/dist/esm/api/resources/empathicVoice/types/JsonMessage.d.mts +30 -11
- package/dist/esm/api/resources/empathicVoice/types/PauseAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ResumeAssistantMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/SessionSettings.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/SubscribeEvent.d.mts +33 -12
- package/dist/esm/api/resources/empathicVoice/types/ToolCallMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ToolErrorMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/ToolResponseMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserInput.d.mts +2 -6
- package/dist/esm/api/resources/empathicVoice/types/UserInterruption.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/UserMessage.d.mts +3 -1
- package/dist/esm/api/resources/empathicVoice/types/WebSocketError.d.mts +3 -1
- package/dist/esm/api/resources/tts/client/requests/ConvertVoiceFileRequest.d.mts +1 -1
- package/dist/esm/api/resources/tts/client/requests/ConvertVoiceJsonRequest.d.mts +1 -1
- package/dist/esm/api/resources/tts/resources/voices/client/Client.mjs +9 -1
- package/dist/esm/api/resources/tts/resources/voices/client/requests/VoicesListRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/AssistantMessage.d.mts +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/AssistantMessage.mjs +1 -0
- package/dist/esm/serialization/resources/empathicVoice/types/ConnectSessionSettings.d.mts +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/ConnectSessionSettings.mjs +1 -1
- package/dist/esm/serialization/resources/empathicVoice/types/JsonMessage.d.mts +2 -1
- package/dist/esm/serialization/resources/empathicVoice/types/JsonMessage.mjs +2 -0
- package/dist/esm/serialization/resources/empathicVoice/types/SubscribeEvent.d.mts +2 -1
- package/dist/esm/serialization/resources/empathicVoice/types/SubscribeEvent.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.d.mts +1 -0
- package/dist/esm/wrapper/expressionMeasurement/batch/BatchClient.mjs +9 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ export class Voices {
|
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
38
|
-
const { provider, pageNumber, pageSize, ascendingOrder } = request;
|
|
38
|
+
const { provider, pageNumber, pageSize, ascendingOrder, filterTag } = request;
|
|
39
39
|
const _queryParams = {};
|
|
40
40
|
_queryParams.provider = serializers.tts.VoiceProvider.jsonOrThrow(provider, {
|
|
41
41
|
unrecognizedObjectKeys: "strip",
|
|
@@ -50,6 +50,14 @@ export class Voices {
|
|
|
50
50
|
if (ascendingOrder != null) {
|
|
51
51
|
_queryParams.ascending_order = ascendingOrder.toString();
|
|
52
52
|
}
|
|
53
|
+
if (filterTag != null) {
|
|
54
|
+
if (Array.isArray(filterTag)) {
|
|
55
|
+
_queryParams.filter_tag = filterTag.map((item) => item);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
_queryParams.filter_tag = filterTag;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
53
61
|
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
54
62
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
55
63
|
url: core.url.join((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.HumeEnvironment.Prod)
|
|
@@ -6,6 +6,7 @@ export const AssistantMessage = core.serialization.object({
|
|
|
6
6
|
customSessionId: core.serialization.property("custom_session_id", core.serialization.string().optional()),
|
|
7
7
|
fromText: core.serialization.property("from_text", core.serialization.boolean()),
|
|
8
8
|
id: core.serialization.string().optional(),
|
|
9
|
+
isQuickResponse: core.serialization.property("is_quick_response", core.serialization.boolean()),
|
|
9
10
|
language: core.serialization.string().optional(),
|
|
10
11
|
message: ChatMessage,
|
|
11
12
|
models: Inference,
|
|
@@ -13,7 +13,7 @@ export declare namespace ConnectSessionSettings {
|
|
|
13
13
|
event_limit?: number | null;
|
|
14
14
|
language_model_api_key?: string | null;
|
|
15
15
|
system_prompt?: string | null;
|
|
16
|
-
variables?: Record<string, ConnectSessionSettingsVariablesValue.Raw> | null;
|
|
17
16
|
voice_id?: string | null;
|
|
17
|
+
variables?: Record<string, ConnectSessionSettingsVariablesValue.Raw> | null;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -10,6 +10,6 @@ export const ConnectSessionSettings = core.serialization.object({
|
|
|
10
10
|
eventLimit: core.serialization.property("event_limit", core.serialization.number().optional()),
|
|
11
11
|
languageModelApiKey: core.serialization.property("language_model_api_key", core.serialization.string().optional()),
|
|
12
12
|
systemPrompt: core.serialization.property("system_prompt", core.serialization.string().optional()),
|
|
13
|
-
variables: core.serialization.record(core.serialization.string(), ConnectSessionSettingsVariablesValue).optional(),
|
|
14
13
|
voiceId: core.serialization.property("voice_id", core.serialization.string().optional()),
|
|
14
|
+
variables: core.serialization.record(core.serialization.string(), ConnectSessionSettingsVariablesValue).optional(),
|
|
15
15
|
});
|
|
@@ -5,6 +5,7 @@ import { AssistantEnd } from "./AssistantEnd.mjs";
|
|
|
5
5
|
import { AssistantMessage } from "./AssistantMessage.mjs";
|
|
6
6
|
import { AssistantProsody } from "./AssistantProsody.mjs";
|
|
7
7
|
import { ChatMetadata } from "./ChatMetadata.mjs";
|
|
8
|
+
import { SessionSettings } from "./SessionSettings.mjs";
|
|
8
9
|
import { ToolCallMessage } from "./ToolCallMessage.mjs";
|
|
9
10
|
import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
|
|
10
11
|
import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
|
|
@@ -13,5 +14,5 @@ import { UserMessage } from "./UserMessage.mjs";
|
|
|
13
14
|
import { WebSocketError } from "./WebSocketError.mjs";
|
|
14
15
|
export declare const JsonMessage: core.serialization.Schema<serializers.empathicVoice.JsonMessage.Raw, Hume.empathicVoice.JsonMessage>;
|
|
15
16
|
export declare namespace JsonMessage {
|
|
16
|
-
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
17
|
+
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw | SessionSettings.Raw;
|
|
17
18
|
}
|
|
@@ -4,6 +4,7 @@ import { AssistantEnd } from "./AssistantEnd.mjs";
|
|
|
4
4
|
import { AssistantMessage } from "./AssistantMessage.mjs";
|
|
5
5
|
import { AssistantProsody } from "./AssistantProsody.mjs";
|
|
6
6
|
import { ChatMetadata } from "./ChatMetadata.mjs";
|
|
7
|
+
import { SessionSettings } from "./SessionSettings.mjs";
|
|
7
8
|
import { ToolCallMessage } from "./ToolCallMessage.mjs";
|
|
8
9
|
import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
|
|
9
10
|
import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
|
|
@@ -21,4 +22,5 @@ export const JsonMessage = core.serialization.undiscriminatedUnion([
|
|
|
21
22
|
ToolCallMessage,
|
|
22
23
|
ToolResponseMessage,
|
|
23
24
|
ToolErrorMessage,
|
|
25
|
+
SessionSettings,
|
|
24
26
|
]);
|
|
@@ -6,6 +6,7 @@ import { AssistantMessage } from "./AssistantMessage.mjs";
|
|
|
6
6
|
import { AssistantProsody } from "./AssistantProsody.mjs";
|
|
7
7
|
import { AudioOutput } from "./AudioOutput.mjs";
|
|
8
8
|
import { ChatMetadata } from "./ChatMetadata.mjs";
|
|
9
|
+
import { SessionSettings } from "./SessionSettings.mjs";
|
|
9
10
|
import { ToolCallMessage } from "./ToolCallMessage.mjs";
|
|
10
11
|
import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
|
|
11
12
|
import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
|
|
@@ -14,5 +15,5 @@ import { UserMessage } from "./UserMessage.mjs";
|
|
|
14
15
|
import { WebSocketError } from "./WebSocketError.mjs";
|
|
15
16
|
export declare const SubscribeEvent: core.serialization.Schema<serializers.empathicVoice.SubscribeEvent.Raw, Hume.empathicVoice.SubscribeEvent>;
|
|
16
17
|
export declare namespace SubscribeEvent {
|
|
17
|
-
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw;
|
|
18
|
+
type Raw = AssistantEnd.Raw | AssistantMessage.Raw | AssistantProsody.Raw | AudioOutput.Raw | ChatMetadata.Raw | WebSocketError.Raw | UserInterruption.Raw | UserMessage.Raw | ToolCallMessage.Raw | ToolResponseMessage.Raw | ToolErrorMessage.Raw | SessionSettings.Raw;
|
|
18
19
|
}
|
|
@@ -5,6 +5,7 @@ import { AssistantMessage } from "./AssistantMessage.mjs";
|
|
|
5
5
|
import { AssistantProsody } from "./AssistantProsody.mjs";
|
|
6
6
|
import { AudioOutput } from "./AudioOutput.mjs";
|
|
7
7
|
import { ChatMetadata } from "./ChatMetadata.mjs";
|
|
8
|
+
import { SessionSettings } from "./SessionSettings.mjs";
|
|
8
9
|
import { ToolCallMessage } from "./ToolCallMessage.mjs";
|
|
9
10
|
import { ToolErrorMessage } from "./ToolErrorMessage.mjs";
|
|
10
11
|
import { ToolResponseMessage } from "./ToolResponseMessage.mjs";
|
|
@@ -23,4 +24,5 @@ export const SubscribeEvent = core.serialization.undiscriminatedUnion([
|
|
|
23
24
|
ToolCallMessage,
|
|
24
25
|
ToolResponseMessage,
|
|
25
26
|
ToolErrorMessage,
|
|
27
|
+
SessionSettings,
|
|
26
28
|
]);
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.15.
|
|
1
|
+
export declare const SDK_VERSION = "0.15.8";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.15.
|
|
1
|
+
export const SDK_VERSION = "0.15.8";
|
|
@@ -4,4 +4,5 @@ import { Job } from "./Job.mjs";
|
|
|
4
4
|
import * as core from "../../../core/index.mjs";
|
|
5
5
|
export declare class BatchClient extends FernClient {
|
|
6
6
|
startInferenceJob(request?: Hume.expressionMeasurement.batch.InferenceBaseRequest, requestOptions?: FernClient.RequestOptions): core.HttpResponsePromise<Job>;
|
|
7
|
+
startInferenceJobFromLocalFile(request: Hume.expressionMeasurement.batch.BatchStartInferenceJobFromLocalFileRequest, requestOptions?: FernClient.RequestOptions): core.HttpResponsePromise<Job>;
|
|
7
8
|
}
|
|
@@ -3,7 +3,7 @@ import * as Hume from "../../../api/index.mjs";
|
|
|
3
3
|
import { Job } from "./Job.mjs";
|
|
4
4
|
import * as core from "../../../core/index.mjs";
|
|
5
5
|
export class BatchClient extends FernClient {
|
|
6
|
-
// This just wraps the return value of the base class's `startInferenceJob`
|
|
6
|
+
// This just wraps the return value of the base class's `startInferenceJob` and `startInferenceJobFromLocalFile` methods
|
|
7
7
|
// and returns a `Job` instance (has helper functions to await the job's result) instead of a raw job ID.
|
|
8
8
|
startInferenceJob(request = {}, requestOptions) {
|
|
9
9
|
return core.HttpResponsePromise.fromPromise(super
|
|
@@ -13,4 +13,12 @@ export class BatchClient extends FernClient {
|
|
|
13
13
|
return { data: new Job(result.data.jobId, this), rawResponse: result.rawResponse };
|
|
14
14
|
}));
|
|
15
15
|
}
|
|
16
|
+
startInferenceJobFromLocalFile(request, requestOptions) {
|
|
17
|
+
return core.HttpResponsePromise.fromPromise(super
|
|
18
|
+
.startInferenceJobFromLocalFile(request, requestOptions)
|
|
19
|
+
.withRawResponse()
|
|
20
|
+
.then((result) => {
|
|
21
|
+
return { data: new Job(result.data.jobId, this), rawResponse: result.rawResponse };
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
16
24
|
}
|