-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathClient.ts
45 lines (35 loc) · 1.47 KB
/
Client.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as environments from "./environments";
import * as core from "./core";
import { EmpathicVoice } from "./api/resources/empathicVoice/client/Client";
import { CustomModels } from "./api/resources/customModels/client/Client";
import { ExpressionMeasurement } from "./api/resources/expressionMeasurement/client/Client";
export declare namespace HumeClient {
interface Options {
environment?: core.Supplier<environments.HumeEnvironment | string>;
apiKey?: core.Supplier<string | undefined>;
accountToken?: core.Supplier<string | undefined>;
fetcher?: core.FetchFunction;
}
interface RequestOptions {
timeoutInSeconds?: number;
maxRetries?: number;
}
}
export class HumeClient {
constructor(protected readonly _options: HumeClient.Options = {}) {}
protected _empathicVoice: EmpathicVoice | undefined;
public get empathicVoice(): EmpathicVoice {
return (this._empathicVoice ??= new EmpathicVoice(this._options));
}
protected _customModels: CustomModels | undefined;
public get customModels(): CustomModels {
return (this._customModels ??= new CustomModels(this._options));
}
protected _expressionMeasurement: ExpressionMeasurement | undefined;
public get expressionMeasurement(): ExpressionMeasurement {
return (this._expressionMeasurement ??= new ExpressionMeasurement(this._options));
}
}