connectbase-client 0.6.37 → 0.7.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.mts CHANGED
@@ -300,7 +300,10 @@ interface QueryOptions {
300
300
  /** 제외할 필드 목록 - 지정된 필드를 제외하고 반환 */
301
301
  exclude?: string[];
302
302
  }
303
- type WhereCondition = Record<string, unknown | WhereOperator>;
303
+ type WhereCondition = {
304
+ /** OR 조건: 배열 내 조건들 중 하나 이상 만족 */
305
+ $or?: WhereCondition[];
306
+ } & Record<string, unknown | WhereOperator>;
304
307
  interface WhereOperator {
305
308
  $eq?: unknown;
306
309
  $ne?: unknown;
@@ -313,6 +316,16 @@ interface WhereOperator {
313
316
  $contains?: string;
314
317
  $startsWith?: string;
315
318
  $endsWith?: string;
319
+ /** 정규식 매칭 (MySQL REGEXP) */
320
+ $matches?: string;
321
+ /** 범위 쿼리 [min, max] */
322
+ $between?: [number, number];
323
+ /** NULL 체크 (true: null인 문서, false: null이 아닌 문서) */
324
+ $isNull?: boolean;
325
+ /** JSON 배열에 특정 값이 포함되어 있는지 확인 */
326
+ $arrayContains?: unknown;
327
+ /** JSON 배열에 주어진 값들 중 하나라도 포함되어 있는지 확인 */
328
+ $arrayContainsAny?: unknown[];
316
329
  }
317
330
  interface BulkCreateResponse {
318
331
  created: DataItem[];
@@ -2607,9 +2620,10 @@ declare class OAuthAPI {
2607
2620
  */
2608
2621
  getEnabledProviders(): Promise<EnabledProvidersResponse>;
2609
2622
  /**
2610
- * 소셜 로그인 (중앙 콜백 방식) - 권장
2623
+ * 소셜 로그인 (리다이렉트 방식) - 권장
2611
2624
  * Google Cloud Console에 별도로 redirect_uri를 등록할 필요가 없습니다.
2612
2625
  * OAuth 완료 후 지정한 콜백 URL로 토큰과 함께 리다이렉트됩니다.
2626
+ * 모든 배포 환경에서 안정적으로 동작합니다.
2613
2627
  *
2614
2628
  * @param provider - OAuth 프로바이더 (google, naver, github, discord)
2615
2629
  * @param callbackUrl - OAuth 완료 후 리다이렉트될 앱의 URL
@@ -2644,6 +2658,10 @@ declare class OAuthAPI {
2644
2658
  * Google Cloud Console에 별도 등록 불필요.
2645
2659
  * 콜백 페이지가 자동으로 제공되므로 callbackUrl은 선택사항입니다.
2646
2660
  *
2661
+ * ⚠️ 일부 배포 환경에서 COOP(Cross-Origin-Opener-Policy) 정책으로 인해
2662
+ * 팝업 닫힘 감지가 제한될 수 있습니다. 3분 타임아웃이 적용되며,
2663
+ * 안정적인 동작이 필요하면 signIn() (리다이렉트 방식)을 사용하세요.
2664
+ *
2647
2665
  * @param provider - OAuth 프로바이더
2648
2666
  * @param callbackUrl - (선택) OAuth 완료 후 리다이렉트될 팝업의 URL. 미지정 시 서버 제공 콜백 사용.
2649
2667
  * @returns 로그인 결과
@@ -2690,6 +2708,7 @@ declare class OAuthAPI {
2690
2708
  } | null;
2691
2709
  }
2692
2710
 
2711
+ type PaymentProvider = 'toss' | 'stripe';
2693
2712
  type PaymentStatus = 'pending' | 'ready' | 'in_progress' | 'done' | 'canceled' | 'partial_canceled' | 'aborted' | 'expired' | 'failed';
2694
2713
  interface PreparePaymentRequest {
2695
2714
  amount: number;
@@ -2705,15 +2724,19 @@ interface PreparePaymentResponse {
2705
2724
  order_id: string;
2706
2725
  amount: number;
2707
2726
  order_name: string;
2727
+ payment_provider: PaymentProvider;
2708
2728
  customer_key: string;
2709
2729
  toss_client_key: string;
2710
2730
  success_url: string;
2711
2731
  fail_url: string;
2732
+ stripe_client_secret?: string;
2733
+ stripe_publishable_key?: string;
2712
2734
  }
2713
2735
  interface ConfirmPaymentRequest {
2714
2736
  payment_key: string;
2715
2737
  order_id: string;
2716
2738
  amount: number;
2739
+ stripe_payment_intent_id?: string;
2717
2740
  }
2718
2741
  interface ConfirmPaymentResponse {
2719
2742
  payment_id: string;
@@ -2743,6 +2766,7 @@ interface PaymentDetail {
2743
2766
  amount: number;
2744
2767
  currency: string;
2745
2768
  status: PaymentStatus;
2769
+ payment_provider?: PaymentProvider;
2746
2770
  method?: string;
2747
2771
  customer_id?: string;
2748
2772
  customer_email?: string;
@@ -2792,6 +2816,15 @@ declare class PaymentAPI {
2792
2816
  * successUrl: prepareResult.success_url,
2793
2817
  * failUrl: prepareResult.fail_url
2794
2818
  * })
2819
+ *
2820
+ * // Stripe 결제 플로우:
2821
+ * // const result = await client.payment.prepare({ amount: 1000, order_name: 'Product' })
2822
+ * // if (result.payment_provider === 'stripe') {
2823
+ * // const stripe = await loadStripe(result.stripe_publishable_key)
2824
+ * // const elements = stripe.elements({ clientSecret: result.stripe_client_secret })
2825
+ * // // Mount PaymentElement, then:
2826
+ * // // stripe.confirmPayment({ elements, redirect: 'if_required' })
2827
+ * // }
2795
2828
  * ```
2796
2829
  */
2797
2830
  prepare(data: PreparePaymentRequest): Promise<PreparePaymentResponse>;
@@ -5113,6 +5146,270 @@ declare class NativeAPI {
5113
5146
  };
5114
5147
  }
5115
5148
 
5149
+ interface CreateDocumentRequest {
5150
+ name: string;
5151
+ source_type?: 'file' | 'text' | 'url';
5152
+ content?: string;
5153
+ source_url?: string;
5154
+ metadata?: Record<string, unknown>;
5155
+ }
5156
+ interface DocumentResponse {
5157
+ id: string;
5158
+ name: string;
5159
+ source_type: string;
5160
+ mime_type?: string;
5161
+ source_url?: string;
5162
+ file_size: number;
5163
+ chunk_count: number;
5164
+ status: 'pending' | 'processing' | 'ready' | 'failed';
5165
+ error_message?: string;
5166
+ metadata?: Record<string, unknown>;
5167
+ knowledge_base_id: string;
5168
+ created_at: string;
5169
+ updated_at: string;
5170
+ processed_at?: string;
5171
+ }
5172
+ interface ListDocumentsResponse {
5173
+ documents: DocumentResponse[];
5174
+ total_count: number;
5175
+ }
5176
+ interface KnowledgeSearchRequest {
5177
+ query: string;
5178
+ top_k?: number;
5179
+ }
5180
+ interface KnowledgeSearchResult {
5181
+ chunk_id: string;
5182
+ document_id: string;
5183
+ document_name: string;
5184
+ content: string;
5185
+ title?: string;
5186
+ score: number;
5187
+ chunk_index: number;
5188
+ metadata?: Record<string, unknown>;
5189
+ }
5190
+ interface KnowledgeSearchResponse {
5191
+ query: string;
5192
+ results: KnowledgeSearchResult[];
5193
+ total: number;
5194
+ }
5195
+ interface ChatRequest {
5196
+ message: string;
5197
+ top_k?: number;
5198
+ model?: string;
5199
+ stream?: boolean;
5200
+ }
5201
+ interface ChatResponse {
5202
+ answer: string;
5203
+ sources: KnowledgeSearchResult[];
5204
+ model: string;
5205
+ token_used?: number;
5206
+ }
5207
+
5208
+ /**
5209
+ * Knowledge Base API
5210
+ *
5211
+ * RAG(Retrieval-Augmented Generation)를 위한 문서 저장 및 검색 API.
5212
+ * 문서를 업로드하면 자동으로 청킹되어 키워드 기반 검색이 가능합니다.
5213
+ *
5214
+ * @example
5215
+ * ```typescript
5216
+ * const cb = new ConnectBase({ apiKey: 'your-api-key' })
5217
+ *
5218
+ * // 텍스트 문서 추가
5219
+ * await cb.knowledge.addDocument('kb-id', {
5220
+ * name: '환불 정책',
5221
+ * source_type: 'text',
5222
+ * content: '환불은 구매 후 7일 이내에 가능합니다...'
5223
+ * })
5224
+ *
5225
+ * // 문서 검색
5226
+ * const results = await cb.knowledge.search('kb-id', {
5227
+ * query: '환불 정책',
5228
+ * top_k: 5
5229
+ * })
5230
+ * ```
5231
+ */
5232
+ declare class KnowledgeAPI {
5233
+ private http;
5234
+ constructor(http: HttpClient);
5235
+ /**
5236
+ * 문서 추가
5237
+ *
5238
+ * 지식 베이스에 새 문서를 추가합니다. 텍스트 소스인 경우 즉시 처리됩니다.
5239
+ *
5240
+ * @param kbID - 지식 베이스 ID
5241
+ * @param data - 문서 생성 요청
5242
+ * @returns 생성된 문서 정보
5243
+ *
5244
+ * @example
5245
+ * ```typescript
5246
+ * // 텍스트 문서
5247
+ * const doc = await cb.knowledge.addDocument('kb-id', {
5248
+ * name: 'FAQ',
5249
+ * source_type: 'text',
5250
+ * content: '자주 묻는 질문들...'
5251
+ * })
5252
+ *
5253
+ * // URL에서 가져오기
5254
+ * const doc2 = await cb.knowledge.addDocument('kb-id', {
5255
+ * name: '도움말',
5256
+ * source_type: 'url',
5257
+ * source_url: 'https://example.com/help.html'
5258
+ * })
5259
+ * ```
5260
+ */
5261
+ addDocument(kbID: string, data: CreateDocumentRequest): Promise<DocumentResponse>;
5262
+ /**
5263
+ * 문서 목록 조회
5264
+ *
5265
+ * @param kbID - 지식 베이스 ID
5266
+ * @returns 문서 목록
5267
+ */
5268
+ listDocuments(kbID: string): Promise<ListDocumentsResponse>;
5269
+ /**
5270
+ * 문서 삭제
5271
+ *
5272
+ * 문서와 관련된 모든 청크도 함께 삭제됩니다.
5273
+ *
5274
+ * @param kbID - 지식 베이스 ID
5275
+ * @param docID - 문서 ID
5276
+ */
5277
+ deleteDocument(kbID: string, docID: string): Promise<void>;
5278
+ /**
5279
+ * 문서 검색
5280
+ *
5281
+ * 키워드 기반으로 관련 문서 청크를 검색합니다.
5282
+ * 제목, 내용, 키워드 필드에서 매칭되며 점수 기반으로 정렬됩니다.
5283
+ *
5284
+ * @param kbID - 지식 베이스 ID
5285
+ * @param request - 검색 요청
5286
+ * @returns 검색 결과
5287
+ *
5288
+ * @example
5289
+ * ```typescript
5290
+ * const results = await cb.knowledge.search('kb-id', {
5291
+ * query: '환불 신청 방법',
5292
+ * top_k: 5 // 상위 5개 결과
5293
+ * })
5294
+ *
5295
+ * for (const result of results.results) {
5296
+ * console.log(`[${result.score}] ${result.title}`)
5297
+ * console.log(result.content)
5298
+ * }
5299
+ * ```
5300
+ */
5301
+ search(kbID: string, request: KnowledgeSearchRequest): Promise<KnowledgeSearchResponse>;
5302
+ /**
5303
+ * 문서 검색 (GET 방식)
5304
+ *
5305
+ * 쿼리 파라미터로 검색합니다.
5306
+ *
5307
+ * @param kbID - 지식 베이스 ID
5308
+ * @param query - 검색 쿼리
5309
+ * @param topK - 반환할 결과 수 (기본값: 지식 베이스 설정)
5310
+ */
5311
+ searchGet(kbID: string, query: string, topK?: number): Promise<KnowledgeSearchResponse>;
5312
+ }
5313
+
5314
+ interface PublishMessageRequest {
5315
+ body: unknown;
5316
+ headers?: Record<string, string>;
5317
+ delay_seconds?: number;
5318
+ deduplication_id?: string;
5319
+ }
5320
+ interface PublishMessageResponse {
5321
+ message_id: string;
5322
+ published_at: string;
5323
+ }
5324
+ interface PublishBatchRequest {
5325
+ messages: PublishMessageRequest[];
5326
+ }
5327
+ interface PublishBatchResponse {
5328
+ published: PublishMessageResponse[];
5329
+ failed: number;
5330
+ total: number;
5331
+ }
5332
+ interface ConsumeOptions {
5333
+ max_messages?: number;
5334
+ visibility_timeout?: number;
5335
+ }
5336
+ interface QueueMessage {
5337
+ message_id: string;
5338
+ body: unknown;
5339
+ headers?: Record<string, string>;
5340
+ published_at: string;
5341
+ delivery_count: number;
5342
+ queue_name: string;
5343
+ }
5344
+ interface ConsumeMessagesResponse {
5345
+ messages: QueueMessage[];
5346
+ }
5347
+ interface AckMessagesRequest {
5348
+ message_ids: string[];
5349
+ }
5350
+ interface NackMessageRequest {
5351
+ delay_seconds?: number;
5352
+ }
5353
+ interface QueueInfoResponse {
5354
+ id: string;
5355
+ name: string;
5356
+ queue_type: string;
5357
+ status: string;
5358
+ depth: number;
5359
+ }
5360
+
5361
+ /**
5362
+ * Queue API
5363
+ *
5364
+ * NATS JetStream 기반 고신뢰 메시지 큐 API.
5365
+ * 메시지 발행, 소비, 확인(Ack), 재시도(Nack)를 지원합니다.
5366
+ *
5367
+ * @example
5368
+ * ```typescript
5369
+ * const cb = new ConnectBase({ apiKey: 'your-api-key' })
5370
+ *
5371
+ * // 메시지 발행
5372
+ * await cb.queue.publish('queue-id', {
5373
+ * body: { to: 'user@example.com', subject: 'Welcome' }
5374
+ * })
5375
+ *
5376
+ * // 메시지 소비
5377
+ * const { messages } = await cb.queue.consume('queue-id', { max_messages: 5 })
5378
+ * for (const msg of messages) {
5379
+ * await processMessage(msg.body)
5380
+ * await cb.queue.ack('queue-id', [msg.message_id])
5381
+ * }
5382
+ * ```
5383
+ */
5384
+ declare class QueueAPI {
5385
+ private http;
5386
+ constructor(http: HttpClient);
5387
+ /**
5388
+ * 메시지 발행
5389
+ */
5390
+ publish(queueID: string, data: PublishMessageRequest): Promise<PublishMessageResponse>;
5391
+ /**
5392
+ * 배치 메시지 발행 (최대 100개)
5393
+ */
5394
+ publishBatch(queueID: string, data: PublishBatchRequest): Promise<PublishBatchResponse>;
5395
+ /**
5396
+ * 메시지 소비 (Pull 방식)
5397
+ */
5398
+ consume(queueID: string, options?: ConsumeOptions): Promise<ConsumeMessagesResponse>;
5399
+ /**
5400
+ * 메시지 처리 완료 확인 (Ack)
5401
+ */
5402
+ ack(queueID: string, messageIds: string[]): Promise<void>;
5403
+ /**
5404
+ * 메시지 재시도 요청 (Nack)
5405
+ */
5406
+ nack(queueID: string, messageId: string, options?: NackMessageRequest): Promise<void>;
5407
+ /**
5408
+ * 큐 정보 조회
5409
+ */
5410
+ getInfo(queueID: string): Promise<QueueInfoResponse>;
5411
+ }
5412
+
5116
5413
  /**
5117
5414
  * WebTransport-based Game Client
5118
5415
  *
@@ -5416,6 +5713,16 @@ declare class ConnectBase {
5416
5713
  * 웹, 모바일(React Native), 데스크톱(Electron)에서 동일한 API로 네이티브 기능 사용
5417
5714
  */
5418
5715
  readonly native: NativeAPI;
5716
+ /**
5717
+ * Knowledge Base API (RAG 문서 검색)
5718
+ * 문서를 업로드하고 키워드 기반으로 검색하여 AI 챗봇을 구축할 수 있습니다.
5719
+ */
5720
+ readonly knowledge: KnowledgeAPI;
5721
+ /**
5722
+ * Queue API (메시지 큐)
5723
+ * NATS JetStream 기반 고신뢰 메시지 큐. 발행, 소비, Ack, Nack 지원.
5724
+ */
5725
+ readonly queue: QueueAPI;
5419
5726
  constructor(config?: ConnectBaseConfig);
5420
5727
  /**
5421
5728
  * 수동으로 토큰 설정 (기존 토큰으로 세션 복원 시)
@@ -5431,4 +5738,4 @@ declare class ConnectBase {
5431
5738
  updateConfig(config: Partial<ConnectBaseConfig>): void;
5432
5739
  }
5433
5740
 
5434
- export { type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type ApiKeyItem, 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 CopyTableRequest, type CopyTableResponse, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, 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 EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchApiKeysResponse, type FetchDataResponse, type FetchFilesResponse, 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 LifecyclePolicy, type ListBillingKeysResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PauseSubscriptionRequest, type PaymentDetail, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, 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 PushPlatform, type QualityProgress, type QueryOptions, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, 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, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type StateChange, type StateChangeHandler, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, 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 TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateApiKeyRequest, type UpdateApiKeyResponse, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoVisibility, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
5741
+ export { type AckMessagesRequest, type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type ApiKeyItem, 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 ChatRequest, type ChatResponse, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, 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 FetchApiKeysResponse, type FetchDataResponse, type FetchFilesResponse, 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 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 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 PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, 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 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 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, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type StateChange, type StateChangeHandler, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, 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 TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateApiKeyRequest, type UpdateApiKeyResponse, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoVisibility, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };