Skip to content

Commit 249ad81

Browse files
committed
SDK regeneration
1 parent 4f56af3 commit 249ad81

File tree

8 files changed

+33
-17
lines changed

8 files changed

+33
-17
lines changed

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
"node-fetch": "2.7.0",
1818
"qs": "6.11.2",
1919
"ws": "^8.14.2",
20-
"@types/ws": "^8.5.9",
2120
"uuid": "9.0.1",
22-
"@types/uuid": "9.0.7",
21+
"command-exists": "^1.2.9",
2322
"execa": "^5.1.1"
2423
},
2524
"devDependencies": {
@@ -29,6 +28,10 @@
2928
"jest": "^29.7.0",
3029
"@types/jest": "^29.5.5",
3130
"ts-jest": "^29.1.1",
32-
"typescript": "4.6.4"
31+
"@types/node": "17.0.33",
32+
"prettier": "2.7.1",
33+
"typescript": "4.6.4",
34+
"@types/ws": "^8.5.9",
35+
"@types/uuid": "9.0.7"
3336
}
34-
}
37+
}

src/Client.ts

+7-7
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 { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
87
import { CustomModels } from "./api/resources/customModels/client/Client";
8+
import { EmpathicVoice } from "./api/resources/empathicVoice/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 _empathicVoice: EmpathicVoice | undefined;
29-
30-
public get empathicVoice(): EmpathicVoice {
31-
return (this._empathicVoice ??= new EmpathicVoice(this._options));
32-
}
33-
3428
protected _customModels: CustomModels | undefined;
3529

3630
public get customModels(): CustomModels {
3731
return (this._customModels ??= new CustomModels(this._options));
3832
}
3933

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

4242
public get expressionMeasurement(): ExpressionMeasurement {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
export interface AudioInput {
66
/** Base64 encoded audio input. */
77
data: string;
8-
type: "user_input";
8+
type: "audio_input";
99
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
export interface TextInput {
66
/** Text to insert into the conversation. */
77
text: string;
8-
type: "user_input";
8+
type: "text_input";
99
}

src/api/resources/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * as empathicVoice from "./empathicVoice";
21
export * as customModels from "./customModels";
2+
export * as empathicVoice from "./empathicVoice";
33
export * as expressionMeasurement from "./expressionMeasurement";

src/core/fetcher/Fetcher.ts

-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse
7272
body = args.body;
7373
} else if (args.body instanceof Uint8Array) {
7474
body = args.body;
75-
} else if (args.contentType === "application/x-www-form-urlencoded" && typeof args.body === "string") {
76-
body = args.body;
7775
} else {
7876
body = JSON.stringify(args.body);
7977
}

src/serialization/resources/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * as empathicVoice from "./empathicVoice";
21
export * as customModels from "./customModels";
2+
export * as empathicVoice from "./empathicVoice";
33
export * as expressionMeasurement from "./expressionMeasurement";

yarn.lock

+15
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,11 @@
639639
dependencies:
640640
undici-types "~5.26.4"
641641

642+
643+
version "17.0.33"
644+
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.33.tgz#3c1879b276dc63e73030bb91165e62a4509cd506"
645+
integrity sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ==
646+
642647
643648
version "6.9.8"
644649
resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.8.tgz#f2a7de3c107b89b441e071d5472e6b726b4adf45"
@@ -951,6 +956,11 @@ combined-stream@^1.0.8:
951956
dependencies:
952957
delayed-stream "~1.0.0"
953958

959+
command-exists@^1.2.9:
960+
version "1.2.9"
961+
resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69"
962+
integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==
963+
954964
955965
version "0.0.1"
956966
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -1999,6 +2009,11 @@ pkg-dir@^4.2.0:
19992009
dependencies:
20002010
find-up "^4.0.0"
20012011

2012+
2013+
version "2.7.1"
2014+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
2015+
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==
2016+
20022017
pretty-format@^29.0.0, pretty-format@^29.7.0:
20032018
version "29.7.0"
20042019
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812"

0 commit comments

Comments
 (0)