connectbase-client 0.16.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -29,10 +29,14 @@ interface HttpClientConfig {
29
29
  accessToken?: string;
30
30
  refreshToken?: string;
31
31
  /**
32
- * 토큰 저장 방식.
33
- * - 'localStorage': 브라우저 종료 후에도 유지 (기본값)
34
- * - 'sessionStorage': 종료 삭제
35
- * - 'none': 메모리에만 저장 (페이지 새로고침 시 삭제)
32
+ * 토큰 저장 방식. **기본값은 'none' (메모리 저장)**.
33
+ * XSS 취약점이 하나라도 있을 경우 세션이 탈취되므로, 영구 저장 옵션은
34
+ * 위험을 이해하고 명시적으로 선택한 경우에만 사용한다.
35
+ *
36
+ * - 'none' (권장·기본값): 메모리에만 저장. 새로고침 시 재로그인 필요
37
+ * → 서버가 refresh token 을 HttpOnly;Secure;SameSite 쿠키로 발급하는 구성에서만 사용
38
+ * - 'sessionStorage': 탭 종료 시 삭제. JS 접근 가능 → XSS 로 탈취 가능
39
+ * - 'localStorage': 브라우저 종료 후에도 유지. JS 접근 가능 → XSS 로 영구 탈취 가능
36
40
  */
37
41
  persistence?: TokenPersistence;
38
42
  onTokenRefresh?: (tokens: {
@@ -52,11 +56,17 @@ declare class HttpClient {
52
56
  private refreshPromise;
53
57
  private storageKey;
54
58
  constructor(config: HttpClientConfig);
59
+ private warnIfUnsafePersistence;
55
60
  updateConfig(config: Partial<HttpClientConfig>): void;
56
61
  setTokens(accessToken: string, refreshToken: string): void;
57
62
  clearTokens(): void;
58
63
  private get persistence();
59
64
  private getStorage;
65
+ /**
66
+ * AuthAPI 등 내부 사용자가 "현재 persistence 설정된 스토리지"를 확인할 수 있도록 노출.
67
+ * persistence='none' 이면 null. XSS 완화 기본값을 공유하기 위함.
68
+ */
69
+ getPersistenceStorage(): Storage | null;
60
70
  private buildStorageKey;
61
71
  private persistTokens;
62
72
  private restoreTokens;
@@ -85,6 +95,10 @@ declare class HttpClient {
85
95
  * Access Token 반환
86
96
  */
87
97
  getAccessToken(): string | undefined;
98
+ /**
99
+ * JWT(Access Token) 가 설정되어 있는지 확인
100
+ */
101
+ hasJWT(): boolean;
88
102
  /**
89
103
  * Base URL 반환
90
104
  */
@@ -141,7 +155,7 @@ interface MemberInfoResponse {
141
155
  member_id: string;
142
156
  nickname: string;
143
157
  is_active: boolean;
144
- custom_data: Record<string, any>;
158
+ custom_data: Record<string, unknown>;
145
159
  /** 멤버 이메일 (EMAIL identity 에서 추출, 없으면 빈 문자열) */
146
160
  email?: string;
147
161
  /** 멤버 역할 — RLS 규칙에서 `auth.role` 로 참조 (예: "admin", "moderator") */
@@ -149,12 +163,12 @@ interface MemberInfoResponse {
149
163
  }
150
164
  /** 앱 멤버 custom_data 수정 요청 */
151
165
  interface UpdateCustomDataRequest {
152
- custom_data: Record<string, any>;
166
+ custom_data: Record<string, unknown>;
153
167
  }
154
168
  /** 앱 멤버 custom_data 수정 응답 */
155
169
  interface UpdateCustomDataResponse {
156
170
  member_id: string;
157
- custom_data: Record<string, any>;
171
+ custom_data: Record<string, unknown>;
158
172
  }
159
173
  /** 앱 인증 설정 응답 */
160
174
  interface AuthSettingsResponse {
@@ -980,6 +994,17 @@ interface ExportDataResponse {
980
994
  data?: Record<string, unknown>;
981
995
  schema?: Record<string, unknown>;
982
996
  }
997
+ /**
998
+ * 데이터 가져오기 요청
999
+ * @example
1000
+ * {
1001
+ * data: {
1002
+ * users: { rows: [{ name: 'Alice', age: 30 }] },
1003
+ * orders: { rows: [{ user: 'Alice', amount: 1000 }] }
1004
+ * },
1005
+ * mode: 'merge'
1006
+ * }
1007
+ */
983
1008
  interface ImportDataRequest {
984
1009
  /** 가져올 데이터: { "테이블이름": { "rows": [{...}, ...] }, ... } */
985
1010
  data: Record<string, {
@@ -1719,10 +1744,14 @@ declare class StorageAPI {
1719
1744
  deleteFile(storageId: string, fileId: string): Promise<void>;
1720
1745
  /**
1721
1746
  * 파일/폴더 이동
1747
+ *
1748
+ * Public Key 인증만으로는 이 엔드포인트가 노출되지 않습니다. JWT(콘솔 토큰)가 필요합니다.
1722
1749
  */
1723
1750
  moveFile(storageId: string, fileId: string, data: MoveFileRequest): Promise<void>;
1724
1751
  /**
1725
1752
  * 파일/폴더 이름 변경
1753
+ *
1754
+ * Public Key 인증만으로는 이 엔드포인트가 노출되지 않습니다. JWT(콘솔 토큰)가 필요합니다.
1726
1755
  */
1727
1756
  renameFile(storageId: string, fileId: string, data: RenameFileRequest): Promise<RenameFileResponse>;
1728
1757
  /**
@@ -3038,6 +3067,29 @@ declare class OAuthAPI {
3038
3067
  state?: string;
3039
3068
  error?: string;
3040
3069
  } | null;
3070
+ /**
3071
+ * 콜백 URL 에서 1회용 `code` 를 토큰으로 교환합니다 (`OAUTH_CODE_ONLY` 서버 모드용).
3072
+ *
3073
+ * 서버가 `OAUTH_CODE_ONLY=true` 모드면 리다이렉트 URL 에 토큰 대신 `code` 만 포함됩니다.
3074
+ * 이 메서드는 code 를 `POST /v1/auth/oauth/exchange` 로 교환하고 토큰을 자동 저장합니다.
3075
+ *
3076
+ * 권장 호출 순서:
3077
+ * 1) `cb.oauth.exchangeCodeFromCallback()` 먼저 — code-only 모드면 성공
3078
+ * 2) null 반환 시 `cb.oauth.getCallbackResult()` 폴백 (legacy 토큰-in-URL 모드)
3079
+ *
3080
+ * @example
3081
+ * ```typescript
3082
+ * const result = await cb.oauth.exchangeCodeFromCallback()
3083
+ * ?? cb.oauth.getCallbackResult()
3084
+ * ```
3085
+ */
3086
+ exchangeCodeFromCallback(): Promise<{
3087
+ access_token: string;
3088
+ refresh_token: string;
3089
+ member_id: string;
3090
+ is_new_member: boolean;
3091
+ state?: string;
3092
+ } | null>;
3041
3093
  }
3042
3094
 
3043
3095
  type PaymentProvider = 'toss' | 'stripe';
@@ -3064,6 +3116,25 @@ interface PreparePaymentResponse {
3064
3116
  stripe_client_secret?: string;
3065
3117
  stripe_publishable_key?: string;
3066
3118
  }
3119
+ interface CreateCheckoutSessionRequest {
3120
+ amount: number;
3121
+ currency: string;
3122
+ product_name: string;
3123
+ success_url: string;
3124
+ cancel_url: string;
3125
+ order_id?: string;
3126
+ customer_email?: string;
3127
+ customer_name?: string;
3128
+ metadata?: Record<string, unknown>;
3129
+ }
3130
+ interface CreateCheckoutSessionResponse {
3131
+ payment_id: string;
3132
+ order_id: string;
3133
+ amount: number;
3134
+ currency: string;
3135
+ session_id: string;
3136
+ session_url: string;
3137
+ }
3067
3138
  interface ConfirmPaymentRequest {
3068
3139
  payment_key: string;
3069
3140
  order_id: string;
@@ -3131,35 +3202,61 @@ declare class PaymentAPI {
3131
3202
  *
3132
3203
  * @example
3133
3204
  * ```typescript
3134
- * const prepareResult = await client.payment.prepare({
3205
+ * const result = await cb.payment.prepare({
3135
3206
  * amount: 10000,
3136
- * order_name: '테스트 상품',
3207
+ * order_name: '프리미엄 1개월',
3137
3208
  * customer_email: 'test@example.com',
3138
3209
  * customer_name: '홍길동'
3139
3210
  * })
3140
3211
  *
3141
- * // 토스 결제 위젯 초기화
3142
- * const tossPayments = TossPayments(prepareResult.toss_client_key)
3143
- * await tossPayments.requestPayment('카드', {
3144
- * amount: prepareResult.amount,
3145
- * orderId: prepareResult.order_id,
3146
- * orderName: prepareResult.order_name,
3147
- * customerKey: prepareResult.customer_key,
3148
- * successUrl: prepareResult.success_url,
3149
- * failUrl: prepareResult.fail_url
3150
- * })
3212
+ * // Toss V2 결제 플로우
3213
+ * if (result.payment_provider === 'toss') {
3214
+ * const tossPayments = TossPayments(result.toss_client_key)
3215
+ * const payment = tossPayments.payment({ customerKey: result.customer_key })
3216
+ * await payment.requestPayment({
3217
+ * method: 'CARD',
3218
+ * amount: { currency: 'KRW', value: result.amount },
3219
+ * orderId: result.order_id,
3220
+ * orderName: result.order_name,
3221
+ * successUrl: result.success_url,
3222
+ * failUrl: result.fail_url,
3223
+ * })
3224
+ * }
3151
3225
  *
3152
- * // Stripe 결제 플로우:
3153
- * // const result = await client.payment.prepare({ amount: 1000, order_name: 'Product' })
3154
- * // if (result.payment_provider === 'stripe') {
3155
- * // const stripe = await loadStripe(result.stripe_publishable_key)
3156
- * // const elements = stripe.elements({ clientSecret: result.stripe_client_secret })
3157
- * // // Mount PaymentElement, then:
3158
- * // // stripe.confirmPayment({ elements, redirect: 'if_required' })
3159
- * // }
3226
+ * // Stripe 결제 플로우
3227
+ * if (result.payment_provider === 'stripe') {
3228
+ * const stripe = await loadStripe(result.stripe_publishable_key)
3229
+ * const elements = stripe.elements({ clientSecret: result.stripe_client_secret })
3230
+ * // Mount PaymentElement, then:
3231
+ * // stripe.confirmPayment({ elements, redirect: 'if_required' })
3232
+ * }
3160
3233
  * ```
3161
3234
  */
3162
3235
  prepare(data: PreparePaymentRequest): Promise<PreparePaymentResponse>;
3236
+ /**
3237
+ * Stripe-hosted 결제 페이지 세션 생성 (client_secret 미노출 플로우).
3238
+ *
3239
+ * Elements 플로우(`prepare`) 대신 Stripe-hosted Checkout 페이지로 리다이렉트하고 싶을 때 사용.
3240
+ * 응답에 `session_url` 이 포함되며, 브라우저를 해당 URL 로 이동시키면 Stripe 가 카드 입력·결제를 처리한 뒤
3241
+ * `success_url` / `cancel_url` 로 복귀한다. `client_secret` 은 서버·클라이언트 어디에도 노출되지 않는다.
3242
+ *
3243
+ * @param data - 결제 세션 정보 (금액, 통화, 상품명, success/cancel URL 등)
3244
+ * @returns session_id, session_url (redirect 대상)
3245
+ *
3246
+ * @example
3247
+ * ```typescript
3248
+ * const sess = await client.payment.createCheckoutSession({
3249
+ * amount: 1000,
3250
+ * currency: 'USD',
3251
+ * product_name: 'Premium Subscription',
3252
+ * success_url: 'https://app.example.com/success?session_id={CHECKOUT_SESSION_ID}',
3253
+ * cancel_url: 'https://app.example.com/cancel',
3254
+ * customer_email: 'user@example.com',
3255
+ * })
3256
+ * window.location.href = sess.session_url
3257
+ * ```
3258
+ */
3259
+ createCheckoutSession(data: CreateCheckoutSessionRequest): Promise<CreateCheckoutSessionResponse>;
3163
3260
  /**
3164
3261
  * 결제 승인
3165
3262
  * 토스에서 결제 완료 후 콜백으로 받은 정보로 결제를 최종 승인합니다.
@@ -5019,12 +5116,16 @@ declare class GameAPI {
5019
5116
  getRoom(roomId: string): Promise<GameRoomInfo>;
5020
5117
  /**
5021
5118
  * 룸 생성 (HTTP, gRPC 대안)
5119
+ *
5120
+ * @deprecated 현재 SDK public 경로로 노출되지 않습니다. 콘솔(admin) 에서 진행하거나 백엔드 public 경로 오픈을 요청하세요.
5022
5121
  */
5023
- createRoom(appId: string, config?: GameRoomConfig): Promise<GameRoomInfo>;
5122
+ createRoom(_appId: string, _config?: GameRoomConfig): Promise<GameRoomInfo>;
5024
5123
  /**
5025
5124
  * 룸 삭제 (HTTP)
5125
+ *
5126
+ * @deprecated 현재 SDK public 경로로 노출되지 않습니다. 콘솔(admin) 에서 진행하거나 백엔드 public 경로 오픈을 요청하세요.
5026
5127
  */
5027
- deleteRoom(roomId: string): Promise<void>;
5128
+ deleteRoom(_roomId: string): Promise<void>;
5028
5129
  /**
5029
5130
  * 매치메이킹 큐에 참가
5030
5131
  */
@@ -5103,7 +5204,10 @@ declare class GameAPI {
5103
5204
  */
5104
5205
  getPlayerInvites(playerId: string): Promise<LobbyInvite[]>;
5105
5206
  createParty(playerId: string, maxSize?: number): Promise<PartyInfo>;
5106
- joinParty(partyId: string, playerId: string): Promise<PartyInfo>;
5207
+ /**
5208
+ * @deprecated 백엔드에서 직접 join 엔드포인트 미제공 — `inviteToParty` → `acceptInvite` 플로우 사용
5209
+ */
5210
+ joinParty(_partyId: string, _playerId: string): Promise<PartyInfo>;
5107
5211
  leaveParty(partyId: string, playerId: string): Promise<void>;
5108
5212
  kickFromParty(partyId: string, playerId: string): Promise<void>;
5109
5213
  inviteToParty(partyId: string, inviterId: string, inviteeId: string): Promise<PartyInvite>;
@@ -5111,9 +5215,9 @@ declare class GameAPI {
5111
5215
  joinSpectator(roomId: string, playerId: string): Promise<SpectatorInfo>;
5112
5216
  leaveSpectator(roomId: string, spectatorId: string): Promise<void>;
5113
5217
  getSpectators(roomId: string): Promise<SpectatorInfo[]>;
5114
- getLeaderboard(top?: number): Promise<LeaderboardEntry[]>;
5115
- getPlayerStats(playerId: string): Promise<PlayerStats>;
5116
- getPlayerRank(playerId: string): Promise<LeaderboardEntry>;
5218
+ getLeaderboard(gameType: string, top?: number, season?: string): Promise<LeaderboardEntry[]>;
5219
+ getPlayerStats(playerId: string, gameType: string, season?: string): Promise<PlayerStats>;
5220
+ getPlayerRank(playerId: string, gameType: string, season?: string): Promise<LeaderboardEntry>;
5117
5221
  joinVoiceChannel(roomId: string, playerId: string): Promise<VoiceChannel>;
5118
5222
  leaveVoiceChannel(roomId: string, playerId: string): Promise<void>;
5119
5223
  setMute(playerId: string, muted: boolean): Promise<void>;
@@ -5124,12 +5228,20 @@ declare class GameAPI {
5124
5228
  private getHeaders;
5125
5229
  }
5126
5230
 
5127
- interface GoogleConnectionStatus {
5231
+ interface AdsenseConnectionInfo {
5128
5232
  is_connected: boolean;
5129
5233
  email?: string;
5130
- adsense_account_id?: string;
5131
- admob_account_id?: string;
5132
- admob_publisher_id?: string;
5234
+ account_id?: string;
5235
+ }
5236
+ interface AdmobConnectionInfo {
5237
+ is_connected: boolean;
5238
+ email?: string;
5239
+ account_id?: string;
5240
+ publisher_id?: string;
5241
+ }
5242
+ interface GoogleConnectionStatus {
5243
+ adsense: AdsenseConnectionInfo;
5244
+ admob: AdmobConnectionInfo;
5133
5245
  }
5134
5246
  interface AdReportSummary {
5135
5247
  total_earnings: number;
@@ -5181,15 +5293,18 @@ declare class AdsAPI {
5181
5293
  */
5182
5294
  private getPublicPrefix;
5183
5295
  /**
5184
- * AdSense 연결 상태 확인
5296
+ * AdSense / AdMob 연결 상태 확인 (중첩 구조)
5185
5297
  *
5186
- * @returns 연결 상태, 이메일, AdSense 계정 ID
5298
+ * @returns `{ adsense, admob }` 각각 연결 상태·이메일·계정 ID
5187
5299
  *
5188
5300
  * @example
5189
5301
  * ```typescript
5190
5302
  * const status = await cb.ads.getConnectionStatus()
5191
- * if (status.is_connected) {
5192
- * console.log('연결됨:', status.email)
5303
+ * if (status.adsense.is_connected) {
5304
+ * console.log('AdSense 연결됨:', status.adsense.email, status.adsense.account_id)
5305
+ * }
5306
+ * if (status.admob.is_connected) {
5307
+ * console.log('AdMob 연결됨:', status.admob.account_id, status.admob.publisher_id)
5193
5308
  * }
5194
5309
  * ```
5195
5310
  */
@@ -5744,9 +5859,16 @@ interface ListDocumentsResponse {
5744
5859
  documents: DocumentResponse[];
5745
5860
  total_count: number;
5746
5861
  }
5862
+ /**
5863
+ * 검색 요청
5864
+ * @example { query: "환불 방법", top_k: 5, agentic: true }
5865
+ */
5747
5866
  interface KnowledgeSearchRequest {
5867
+ /** 검색 쿼리 (필수) */
5748
5868
  query: string;
5869
+ /** 반환할 결과 수 (기본: KB 설정값) */
5749
5870
  top_k?: number;
5871
+ /** Agentic Search 활성화 — AI 가 쿼리를 자동 생성하여 다중 검색 수행 */
5750
5872
  agentic?: boolean;
5751
5873
  }
5752
5874
  interface KnowledgeSearchResult {
@@ -6603,4 +6725,4 @@ declare class ConnectBase {
6603
6725
  updateConfig(config: Partial<ConnectBaseConfig>): void;
6604
6726
  }
6605
6727
 
6606
- export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsentOptions, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
6728
+ export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdMobDailyReport, type AdMobReportResponse, type AdMobReportSummary, type AdReportResponse, type AdReportSummary, type AdmobConnectionInfo, AdsAPI, type AdsenseConnectionInfo, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsentOptions, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };