import type { ApiClient } from '../../core/ApiClient' import type { HasGetById } from '../../core/types' import type { TranscriptResponse } from './types' export class TranscriptsApi implements HasGetById { private readonly client: ApiClient private readonly basePath = '/transcripts' constructor(client: ApiClient) { this.client = client } /** Triggers audio transcription for a message by dispatching an async job, and marks it as transcribing. */ getById(id: string, headers?: Record): Promise { return this.client.get(`${this.basePath}/${id}`, headers) } }