Skip to content

Commit

Permalink
Redefine HumeClient.Options to require credentials of some sort
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchard committed Oct 4, 2024
1 parent f8b61a2 commit 0fc1e73
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/wrapper/HumeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import { HumeClient as FernClient } from "../Client";
import { ExpressionMeasurement } from "./expressionMeasurement/ExpressionMeasurementClient";

export declare namespace HumeClient {
export interface Options extends FernClient.Options {
secretKey?: string;
}
type Options = FernClient.Options & { secretKey?: string } & (
| { accessToken: FernClient.Options["accessToken"] }
| { apiKey: FernClient.Options["apiKey"] }
);
}

export class HumeClient extends FernClient {
constructor(protected readonly _options: HumeClient.Options = {}) {
constructor(protected readonly _options: HumeClient.Options) {
super(_options);
}
}

0 comments on commit 0fc1e73

Please sign in to comment.