{"version":3,"file":"TranscriptsApi.cjs","names":[],"sources":["../../../src/apis/transcripts/TranscriptsApi.ts"],"sourcesContent":["import type { ApiClient } from '../../core/ApiClient'\nimport type { HasGetById } from '../../core/types'\nimport type { TranscriptResponse } from './types'\n\nexport class TranscriptsApi implements HasGetById<TranscriptResponse> {\n  private readonly client: ApiClient\n  private readonly basePath = '/transcripts'\n\n  constructor(client: ApiClient) {\n    this.client = client\n  }\n\n  /** Triggers audio transcription for a message by dispatching an async job, and marks it as transcribing. */\n  getById(id: string, headers?: Record<string, string>): Promise<TranscriptResponse> {\n    return this.client.get<TranscriptResponse>(`${this.basePath}/${id}`, headers)\n  }\n}\n"],"mappings":";;;AAIA,IAAa,iBAAb,MAAsE;CACpE,AAAiB;CACjB,AAAiB,WAAW;CAE5B,YAAY,QAAmB;AAC7B,OAAK,SAAS;;;CAIhB,QAAQ,IAAY,SAA+D;AACjF,SAAO,KAAK,OAAO,IAAwB,GAAG,KAAK,SAAS,GAAG,MAAM,QAAQ"}