File tree 8 files changed +33
-17
lines changed
8 files changed +33
-17
lines changed Original file line number Diff line number Diff line change 17
17
"node-fetch" : " 2.7.0" ,
18
18
"qs" : " 6.11.2" ,
19
19
"ws" : " ^8.14.2" ,
20
- "@types/ws" : " ^8.5.9" ,
21
20
"uuid" : " 9.0.1" ,
22
- "@types/uuid " : " 9.0.7 " ,
21
+ "command-exists " : " ^1.2.9 " ,
23
22
"execa" : " ^5.1.1"
24
23
},
25
24
"devDependencies" : {
29
28
"jest" : " ^29.7.0" ,
30
29
"@types/jest" : " ^29.5.5" ,
31
30
"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"
33
36
}
34
- }
37
+ }
Original file line number Diff line number Diff line change 4
4
5
5
import * as environments from "./environments" ;
6
6
import * as core from "./core" ;
7
- import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client" ;
8
7
import { CustomModels } from "./api/resources/customModels/client/Client" ;
8
+ import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client" ;
9
9
import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client" ;
10
10
11
11
export declare namespace HumeClient {
@@ -25,18 +25,18 @@ export declare namespace HumeClient {
25
25
export class HumeClient {
26
26
constructor ( protected readonly _options : HumeClient . Options = { } ) { }
27
27
28
- protected _empathicVoice : EmpathicVoice | undefined ;
29
-
30
- public get empathicVoice ( ) : EmpathicVoice {
31
- return ( this . _empathicVoice ??= new EmpathicVoice ( this . _options ) ) ;
32
- }
33
-
34
28
protected _customModels : CustomModels | undefined ;
35
29
36
30
public get customModels ( ) : CustomModels {
37
31
return ( this . _customModels ??= new CustomModels ( this . _options ) ) ;
38
32
}
39
33
34
+ protected _empathicVoice : EmpathicVoice | undefined ;
35
+
36
+ public get empathicVoice ( ) : EmpathicVoice {
37
+ return ( this . _empathicVoice ??= new EmpathicVoice ( this . _options ) ) ;
38
+ }
39
+
40
40
protected _expressionMeasurement : ExpressionMeasurement | undefined ;
41
41
42
42
public get expressionMeasurement ( ) : ExpressionMeasurement {
Original file line number Diff line number Diff line change 5
5
export interface AudioInput {
6
6
/** Base64 encoded audio input. */
7
7
data : string ;
8
- type : "user_input " ;
8
+ type : "audio_input " ;
9
9
}
Original file line number Diff line number Diff line change 5
5
export interface TextInput {
6
6
/** Text to insert into the conversation. */
7
7
text : string ;
8
- type : "user_input " ;
8
+ type : "text_input " ;
9
9
}
Original file line number Diff line number Diff line change 1
- export * as empathicVoice from "./empathicVoice" ;
2
1
export * as customModels from "./customModels" ;
2
+ export * as empathicVoice from "./empathicVoice" ;
3
3
export * as expressionMeasurement from "./expressionMeasurement" ;
Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ async function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse
72
72
body = args . body ;
73
73
} else if ( args . body instanceof Uint8Array ) {
74
74
body = args . body ;
75
- } else if ( args . contentType === "application/x-www-form-urlencoded" && typeof args . body === "string" ) {
76
- body = args . body ;
77
75
} else {
78
76
body = JSON . stringify ( args . body ) ;
79
77
}
Original file line number Diff line number Diff line change 1
- export * as empathicVoice from "./empathicVoice" ;
2
1
export * as customModels from "./customModels" ;
2
+ export * as empathicVoice from "./empathicVoice" ;
3
3
export * as expressionMeasurement from "./expressionMeasurement" ;
Original file line number Diff line number Diff line change 639
639
dependencies :
640
640
undici-types "~5.26.4"
641
641
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
+
642
647
643
648
version "6.9.8"
644
649
resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.8.tgz#f2a7de3c107b89b441e071d5472e6b726b4adf45"
@@ -951,6 +956,11 @@ combined-stream@^1.0.8:
951
956
dependencies :
952
957
delayed-stream "~1.0.0"
953
958
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
+
954
964
955
965
version "0.0.1"
956
966
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -1999,6 +2009,11 @@ pkg-dir@^4.2.0:
1999
2009
dependencies :
2000
2010
find-up "^4.0.0"
2001
2011
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
+
2002
2017
pretty-format@^29.0.0, pretty-format@^29.7.0 :
2003
2018
version "29.7.0"
2004
2019
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812"
You can’t perform that action at this time.
0 commit comments