refactor(api-client): publish only the shared contract from the root barrel

This commit is contained in:
Yun Chan 2026-09-28 02:16:27 +09:00
parent 6533084a0d
commit c3367bc611
7 changed files with 100 additions and 374 deletions

View file

@ -1,20 +1,13 @@
// packages/api-client — barrel export
// Database 타입 + 모든 도메인 함수 재수출.
// @supabase/ssr 0.10 + supabase-js 2.103 정합으로 제네릭이 consumer에 전파됨.
// packages/api-client — root barrel
// 공유 계약만 공개한다: Database/도메인 타입 + Supabase 클라이언트 팩토리 + STT 계약 타입.
// 저장소(CRUD)·쿼터 조회·STT 호출 같은 런타임 정책은 각 앱(web/mobile)이 소유한다.
// @supabase/ssr 0.10 + supabase-js 2.103 정합으로 Database 제네릭이 consumer에 전파됨.
//
// Sub-path도 지원:
// '@d3ro/api-client/client' — Supabase 클라이언트 팩토리
// '@d3ro/api-client/auth' — 로그인/세션
// '@d3ro/api-client/meetings' — 회의 CRUD
// '@d3ro/api-client/history' — 음성 입력 이력
// '@d3ro/api-client/usage' — 쿼터/구독
// Sub-path:
// '@d3ro/api-client/client' — Supabase 클라이언트 팩토리
// '@d3ro/api-client/supabase-browser' — Next.js 브라우저 클라이언트 (@supabase/ssr)
// '@d3ro/api-client/supabase-server' — Next.js RSC/route handler 클라이언트 (@supabase/ssr)
export * from './types'
export * from './client'
export * from './auth'
export * from './meetings'
export * from './history'
export * from './usage'
export * from './transcribe'
export * from './supabase-browser'
export * from './supabase-server'
export type { TranscribeAudioParams, TranscribeAudioResult } from './stt-contract'