{"version":3,"file":"client-entry.cjs","names":["MastraClient"],"sources":["../src/client-entry.ts"],"sourcesContent":["// Browser-safe entry point. Keep server routes, credentials, and worker runtimes out of this module.\nimport { MastraClient } from '@mastra/client-js';\nimport type { LiveKitRecordingResponse } from './recording-types';\n\nexport type { LiveKitRecording, LiveKitRecordingResponse } from './recording-types';\n\n/** Requests a fresh playback URL using the client's authentication and fetch configuration. */\nexport function getLiveKitRecording(\n  client: Pick<MastraClient, 'options'>,\n  traceId: string,\n  options?: { signal?: AbortSignal },\n): Promise<LiveKitRecordingResponse> {\n  // Custom integration routes mount at the server root, independently of apiPrefix.\n  // A separate client preserves the original client's routing and transport settings.\n  const integration = new MastraClient({ ...client.options, apiPrefix: '' });\n  return integration.request(`/voice/livekit/recordings/${encodeURIComponent(traceId)}`, {\n    retries: 0,\n    signal: options?.signal,\n  });\n}\n"],"mappings":";;;;AAOA,SAAgB,oBACd,QACA,SACA,SACmC;CAInC,OAAO,IADiBA,kBAAAA,aAAa;EAAE,GAAG,OAAO;EAAS,WAAW;CAAG,CACvD,CAAC,CAAC,QAAQ,6BAA6B,mBAAmB,OAAO,KAAK;EACrF,SAAS;EACT,QAAQ,SAAS;CACnB,CAAC;AACH"}