Skip to content

Commit 02925df

Browse files
author
Transcript-Fetch-Admin
committed
feat: public entrypoint and exports
1 parent bf5500a commit 02925df

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

‎src/index.ts‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Official Node.js / TypeScript SDK for the TranscriptFetch API.
3+
*
4+
* ```ts
5+
* import { TranscriptFetch } from "transcriptfetch";
6+
*
7+
* const tf = new TranscriptFetch("tf_live_..."); // or set TRANSCRIPTFETCH_API_KEY
8+
* const t = await tf.transcripts.video("dQw4w9WgXcQ");
9+
* console.log(t.title, t.text);
10+
* ```
11+
*/
12+
13+
export { TranscriptFetch, type RequestOptions } from "./client";
14+
export type { ClientOptions } from "./config";
15+
export type { ListOptions } from "./resources/transcripts";
16+
export { VERSION } from "./version";
17+
18+
export {
19+
TranscriptFetchError,
20+
APIError,
21+
APIConnectionError,
22+
APITimeoutError,
23+
AuthenticationError,
24+
InvalidRequestError,
25+
InsufficientCreditsError,
26+
IdempotencyConflictError,
27+
RateLimitError,
28+
UpstreamUnavailableError,
29+
InternalServerError,
30+
} from "./errors";
31+
32+
export type {
33+
Usage,
34+
Segment,
35+
Transcript,
36+
Video,
37+
VideoList,
38+
BatchResult,
39+
BatchResponse,
40+
Health,
41+
} from "./models";

0 commit comments

Comments
 (0)