Skip to content

Commit c0fd2ac

Browse files
committed
SDK regeneration
1 parent 5ca7c55 commit c0fd2ac

33 files changed

+169
-55
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"node-fetch": "2.7.0",
1818
"qs": "6.11.2",
1919
"ws": "^8.14.2",
20-
"uuid": "9.0.1"
20+
"@types/ws": "^8.5.9",
21+
"uuid": "9.0.1",
22+
"@types/uuid": "9.0.7"
2123
},
2224
"devDependencies": {
2325
"@types/url-join": "4.0.1",
@@ -28,8 +30,6 @@
2830
"ts-jest": "^29.1.1",
2931
"@types/node": "17.0.33",
3032
"prettier": "2.7.1",
31-
"typescript": "4.6.4",
32-
"@types/ws": "^8.5.9",
33-
"@types/uuid": "9.0.7"
33+
"typescript": "4.6.4"
3434
}
3535
}

src/Client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import * as environments from "./environments";
66
import * as core from "./core";
7-
import { CustomModels } from "./api/resources/customModels/client/Client";
87
import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
8+
import { CustomModels } from "./api/resources/customModels/client/Client";
99
import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
1010

1111
export declare namespace HumeClient {
@@ -25,18 +25,18 @@ export declare namespace HumeClient {
2525
export class HumeClient {
2626
constructor(protected readonly _options: HumeClient.Options = {}) {}
2727

28-
protected _customModels: CustomModels | undefined;
29-
30-
public get customModels(): CustomModels {
31-
return (this._customModels ??= new CustomModels(this._options));
32-
}
33-
3428
protected _empathicVoice: EmpathicVoice | undefined;
3529

3630
public get empathicVoice(): EmpathicVoice {
3731
return (this._empathicVoice ??= new EmpathicVoice(this._options));
3832
}
3933

34+
protected _customModels: CustomModels | undefined;
35+
36+
public get customModels(): CustomModels {
37+
return (this._customModels ??= new CustomModels(this._options));
38+
}
39+
4040
protected _expressionMeasurement: ExpressionMeasurement | undefined;
4141

4242
public get expressionMeasurement(): ExpressionMeasurement {

src/api/resources/empathicVoice/resources/chat/types/PublishEvent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import * as Hume from "../../../../..";
77
export type PublishEvent =
88
| Hume.empathicVoice.AudioInput
99
| Hume.empathicVoice.SessionSettings
10-
| Hume.empathicVoice.TextInput
11-
| Hume.empathicVoice.TtsInput;
10+
| Hume.empathicVoice.UserInput
11+
| Hume.empathicVoice.AssistantInput;

src/api/resources/empathicVoice/types/AssistantEnd.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5+
/**
6+
* When provided, the output is an assistant end message.
7+
*/
58
export interface AssistantEnd {
9+
customSessionId?: string;
610
type: "assistant_end";
711
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* When provided, the input is spoken by EVI.
7+
*/
8+
export interface AssistantInput {
9+
customSessionId?: string;
10+
/** Text to be synthesized. */
11+
text: string;
12+
type: "assistant_input";
13+
}

src/api/resources/empathicVoice/types/AssistantMessage.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44

55
import * as Hume from "../../..";
66

7+
/**
8+
* When provided, the output is an assistant message.
9+
*/
710
export interface AssistantMessage {
8-
/** Indicates if this message was constructed from a TtsInput message. */
9-
fromTts: boolean;
11+
customSessionId?: string;
12+
/** Indicates if this message was constructed from a text input message. */
13+
fromText: boolean;
1014
/** ID of the assistant message. */
1115
id?: string;
1216
/** Transcript of the message. */

src/api/resources/empathicVoice/types/AudioInput.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5+
/**
6+
* When provided, the input is audio.
7+
*/
58
export interface AudioInput {
9+
customSessionId?: string;
610
/** Base64 encoded audio input. */
711
data: string;
812
type: "audio_input";

src/api/resources/empathicVoice/types/AudioOutput.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5+
/**
6+
* When provided, the output is audio.
7+
*/
58
export interface AudioOutput {
6-
/** Base64 encoded Linear16 PCM output. */
9+
customSessionId?: string;
10+
/** Base64 encoded audio output. */
711
data: string;
812
/** ID of the audio output. */
913
id: string;

src/api/resources/empathicVoice/types/Error_.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5+
/**
6+
* When provided, the output is an error message.
7+
*/
58
export interface Error_ {
69
/** Error code. */
710
code: string;
11+
customSessionId?: string;
812
/** Error message. */
913
message: string;
1014
/** Error slug. */

src/api/resources/empathicVoice/types/SessionSettings.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44

55
import * as Hume from "../../..";
66

7+
/**
8+
* Settings for this chat session.
9+
*/
710
export interface SessionSettings {
11+
customSessionId?: string;
812
audio?: Hume.empathicVoice.AudioConfiguration;
913
languageModelApiKey?: string;
10-
type?: "session_settings";
14+
systemPrompt?: string;
15+
type: "session_settings";
1116
}

0 commit comments

Comments
 (0)