connectbase-client 0.10.14 → 0.12.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
@@ -8,7 +8,16 @@ declare class AuthError extends Error {
8
8
 
9
9
  interface HttpClientConfig {
10
10
  baseUrl: string;
11
- apiKey?: string;
11
+ /**
12
+ * Public Key (cb_pk_* 형식). 콘솔 → 설정 → API 에서 발급.
13
+ * 브라우저/클라이언트에서 사용 (Row Level Security 적용).
14
+ */
15
+ publicKey?: string;
16
+ /**
17
+ * Secret Key (cb_sk_* 형식). 사용자 프로필에서 발급.
18
+ * 서버 환경에서만 사용 (전체 권한, 절대 노출 금지).
19
+ */
20
+ secretKey?: string;
12
21
  accessToken?: string;
13
22
  refreshToken?: string;
14
23
  onTokenRefresh?: (tokens: {
@@ -31,13 +40,25 @@ declare class HttpClient {
31
40
  setTokens(accessToken: string, refreshToken: string): void;
32
41
  clearTokens(): void;
33
42
  /**
34
- * API Key가 설정되어 있는지 확인
43
+ * Public Key 가 설정되어 있는지 확인
44
+ */
45
+ hasPublicKey(): boolean;
46
+ /**
47
+ * Public Key 반환
48
+ */
49
+ getPublicKey(): string | undefined;
50
+ /**
51
+ * Secret Key 가 설정되어 있는지 확인
52
+ */
53
+ hasSecretKey(): boolean;
54
+ /**
55
+ * Secret Key 반환
35
56
  */
36
- hasApiKey(): boolean;
57
+ getSecretKey(): string | undefined;
37
58
  /**
38
- * API Key 반환
59
+ * 현재 설정된 자격증명 (publicKey 또는 secretKey) 반환
39
60
  */
40
- getApiKey(): string | undefined;
61
+ getCredential(): string | undefined;
41
62
  /**
42
63
  * Access Token 반환
43
64
  */
@@ -1540,15 +1561,15 @@ declare class StorageAPI {
1540
1561
  }
1541
1562
 
1542
1563
  /**
1543
- * API Key 관련 타입 정의
1564
+ * Public Key 관련 타입 정의
1544
1565
  */
1545
1566
  /**
1546
- * API Key 아이템
1567
+ * Public Key 아이템
1547
1568
  */
1548
- interface ApiKeyItem {
1549
- /** API Key ID */
1569
+ interface PublicKeyItem {
1570
+ /** Public Key ID */
1550
1571
  id: string;
1551
- /** API Key 이름 */
1572
+ /** Public Key 이름 */
1552
1573
  name: string;
1553
1574
  /** 키 앞 12자리 (표시용) */
1554
1575
  key_prefix: string;
@@ -1562,21 +1583,21 @@ interface ApiKeyItem {
1562
1583
  created_at: string;
1563
1584
  }
1564
1585
  /**
1565
- * API Key 생성 요청
1586
+ * Public Key 생성 요청
1566
1587
  */
1567
- interface CreateApiKeyRequest {
1568
- /** API Key 이름 (예: Production, Development) */
1588
+ interface CreatePublicKeyRequest {
1589
+ /** Public Key 이름 (예: Production, Development) */
1569
1590
  name: string;
1570
1591
  /** 만료일 (옵션) */
1571
1592
  expires_at?: string;
1572
1593
  }
1573
1594
  /**
1574
- * API Key 생성 응답 (전체 키는 이때만 반환됨)
1595
+ * Public Key 생성 응답 (전체 키는 이때만 반환됨)
1575
1596
  */
1576
- interface CreateApiKeyResponse {
1577
- /** API Key ID */
1597
+ interface CreatePublicKeyResponse {
1598
+ /** Public Key ID */
1578
1599
  id: string;
1579
- /** API Key 이름 */
1600
+ /** Public Key 이름 */
1580
1601
  name: string;
1581
1602
  /** 전체 키 값 (생성 시에만 반환, 안전하게 보관 필요) */
1582
1603
  key: string;
@@ -1590,24 +1611,24 @@ interface CreateApiKeyResponse {
1590
1611
  created_at: string;
1591
1612
  }
1592
1613
  /**
1593
- * API Key 목록 조회 응답
1614
+ * Public Key 목록 조회 응답
1594
1615
  */
1595
- interface FetchApiKeysResponse {
1596
- api_keys: ApiKeyItem[];
1616
+ interface FetchPublicKeysResponse {
1617
+ public_keys: PublicKeyItem[];
1597
1618
  }
1598
1619
  /**
1599
- * API Key 수정 요청
1620
+ * Public Key 수정 요청
1600
1621
  */
1601
- interface UpdateApiKeyRequest {
1602
- /** API Key 이름 변경 */
1622
+ interface UpdatePublicKeyRequest {
1623
+ /** Public Key 이름 변경 */
1603
1624
  name?: string;
1604
1625
  /** 활성화/비활성화 */
1605
1626
  is_active?: boolean;
1606
1627
  }
1607
1628
  /**
1608
- * API Key 수정 응답
1629
+ * Public Key 수정 응답
1609
1630
  */
1610
- interface UpdateApiKeyResponse {
1631
+ interface UpdatePublicKeyResponse {
1611
1632
  id: string;
1612
1633
  name: string;
1613
1634
  key_prefix: string;
@@ -1617,55 +1638,55 @@ interface UpdateApiKeyResponse {
1617
1638
  }
1618
1639
 
1619
1640
  /**
1620
- * API Key 관리 API
1641
+ * Public Key 관리 API
1621
1642
  *
1622
1643
  * @example
1623
1644
  * ```typescript
1624
- * // API Key 목록 조회
1625
- * const keys = await cb.apiKey.getApiKeys('app-id')
1645
+ * // Public Key 목록 조회
1646
+ * const keys = await cb.publicKey.getPublicKeys('app-id')
1626
1647
  *
1627
- * // 새 API Key 생성
1628
- * const newKey = await cb.apiKey.createApiKey('app-id', { name: 'Production' })
1648
+ * // 새 Public Key 생성
1649
+ * const newKey = await cb.publicKey.createPublicKey('app-id', { name: 'Production' })
1629
1650
  * console.log(newKey.key) // 전체 키 (이때만 볼 수 있음!)
1630
1651
  *
1631
- * // API Key 비활성화
1632
- * await cb.apiKey.updateApiKey('app-id', 'key-id', { is_active: false })
1652
+ * // Public Key 비활성화
1653
+ * await cb.publicKey.updatePublicKey('app-id', 'key-id', { is_active: false })
1633
1654
  *
1634
- * // API Key 삭제
1635
- * await cb.apiKey.deleteApiKey('app-id', 'key-id')
1655
+ * // Public Key 삭제
1656
+ * await cb.publicKey.deletePublicKey('app-id', 'key-id')
1636
1657
  * ```
1637
1658
  */
1638
- declare class ApiKeyAPI {
1659
+ declare class PublicKeyAPI {
1639
1660
  private http;
1640
1661
  constructor(http: HttpClient);
1641
1662
  /**
1642
- * 앱의 API Key 목록을 조회합니다
1663
+ * 앱의 Public Key 목록을 조회합니다
1643
1664
  * @param appId 앱 ID
1644
1665
  */
1645
- getApiKeys(appId: string): Promise<FetchApiKeysResponse>;
1666
+ getPublicKeys(appId: string): Promise<FetchPublicKeysResponse>;
1646
1667
  /**
1647
- * 새 API Key를 생성합니다
1668
+ * 새 Public Key 를 생성합니다
1648
1669
  *
1649
1670
  * **중요**: 반환되는 `key` 값은 이 응답에서만 볼 수 있습니다.
1650
1671
  * 안전한 곳에 저장하세요.
1651
1672
  *
1652
1673
  * @param appId 앱 ID
1653
- * @param data 생성할 API Key 정보
1674
+ * @param data 생성할 Public Key 정보
1654
1675
  */
1655
- createApiKey(appId: string, data: CreateApiKeyRequest): Promise<CreateApiKeyResponse>;
1676
+ createPublicKey(appId: string, data: CreatePublicKeyRequest): Promise<CreatePublicKeyResponse>;
1656
1677
  /**
1657
- * API Key를 수정합니다 (이름 변경, 활성화/비활성화)
1678
+ * Public Key 를 수정합니다 (이름 변경, 활성화/비활성화)
1658
1679
  * @param appId 앱 ID
1659
- * @param keyId API Key ID
1680
+ * @param keyId Public Key ID
1660
1681
  * @param data 수정할 정보
1661
1682
  */
1662
- updateApiKey(appId: string, keyId: string, data: UpdateApiKeyRequest): Promise<UpdateApiKeyResponse>;
1683
+ updatePublicKey(appId: string, keyId: string, data: UpdatePublicKeyRequest): Promise<UpdatePublicKeyResponse>;
1663
1684
  /**
1664
- * API Key를 삭제합니다
1685
+ * Public Key 를 삭제합니다
1665
1686
  * @param appId 앱 ID
1666
- * @param keyId API Key ID
1687
+ * @param keyId Public Key ID
1667
1688
  */
1668
- deleteApiKey(appId: string, keyId: string): Promise<void>;
1689
+ deletePublicKey(appId: string, keyId: string): Promise<void>;
1669
1690
  }
1670
1691
 
1671
1692
  /**
@@ -4347,8 +4368,8 @@ interface GameClientConfig {
4347
4368
  gameServerUrl?: string;
4348
4369
  /** 앱 ID */
4349
4370
  appId?: string;
4350
- /** API Key */
4351
- apiKey?: string;
4371
+ /** Public Key */
4372
+ publicKey?: string;
4352
4373
  /** 액세스 토큰 */
4353
4374
  accessToken?: string;
4354
4375
  /** 클라이언트 ID */
@@ -4958,7 +4979,7 @@ declare class AdsAPI {
4958
4979
  * ```typescript
4959
4980
  * import ConnectBase from 'connectbase-client'
4960
4981
  *
4961
- * const cb = new ConnectBase({ apiKey: 'your-api-key' })
4982
+ * const cb = new ConnectBase({ publicKey: 'your-public-key' })
4962
4983
  *
4963
4984
  * // 플랫폼 감지
4964
4985
  * const platform = cb.native.getPlatform() // 'web' | 'mobile' | 'desktop'
@@ -5467,7 +5488,7 @@ interface KnowledgeSearchResponse {
5467
5488
  *
5468
5489
  * @example
5469
5490
  * ```typescript
5470
- * const cb = new ConnectBase({ apiKey: 'your-api-key' })
5491
+ * const cb = new ConnectBase({ publicKey: 'your-public-key' })
5471
5492
  *
5472
5493
  * // 텍스트 문서 추가
5473
5494
  * await cb.knowledge.addDocument('kb-id', {
@@ -5593,6 +5614,16 @@ interface AIChatRequest {
5593
5614
  knowledgeBaseId?: string;
5594
5615
  topK?: number;
5595
5616
  agentic?: boolean;
5617
+ toolGroupId?: string;
5618
+ }
5619
+ interface AIToolEvent {
5620
+ type: 'tool_start' | 'tool_end' | 'heartbeat';
5621
+ name?: string;
5622
+ toolCallId?: string;
5623
+ arguments?: Record<string, unknown>;
5624
+ result?: string;
5625
+ success?: boolean;
5626
+ durationMs?: number;
5596
5627
  }
5597
5628
  interface AISource {
5598
5629
  chunkId: string;
@@ -5615,12 +5646,18 @@ interface AIChatResponse {
5615
5646
  sources?: AISource[];
5616
5647
  }
5617
5648
  interface AIStreamChunk {
5618
- type?: 'sources' | 'token';
5649
+ type?: 'sources' | 'token' | 'searching' | 'tool_start' | 'tool_end' | 'heartbeat';
5619
5650
  content: string;
5620
5651
  finishReason?: string;
5621
5652
  done: boolean;
5622
5653
  toolCalls?: AIToolCall[];
5623
5654
  sources?: AISource[];
5655
+ name?: string;
5656
+ toolCallId?: string;
5657
+ arguments?: Record<string, unknown>;
5658
+ result?: string;
5659
+ success?: boolean;
5660
+ durationMs?: number;
5624
5661
  }
5625
5662
 
5626
5663
  /**
@@ -5631,7 +5668,7 @@ interface AIStreamChunk {
5631
5668
  *
5632
5669
  * @example
5633
5670
  * ```typescript
5634
- * const cb = new ConnectBase({ apiKey: 'your-api-key' })
5671
+ * const cb = new ConnectBase({ publicKey: 'your-public-key' })
5635
5672
  *
5636
5673
  * // 일반 AI 채팅
5637
5674
  * const response = await cb.ai.chat({
@@ -5673,6 +5710,7 @@ declare class AIAPI {
5673
5710
  chatStream(request: AIChatRequest, callbacks: {
5674
5711
  onSources?: (sources: AISource[]) => void;
5675
5712
  onToken?: (content: string) => void;
5713
+ onToolEvent?: (event: AIToolEvent) => void;
5676
5714
  onDone?: () => void;
5677
5715
  onError?: (error: string) => void;
5678
5716
  }): Promise<void>;
@@ -5741,7 +5779,7 @@ interface QueueInfoResponse {
5741
5779
  *
5742
5780
  * @example
5743
5781
  * ```typescript
5744
- * const cb = new ConnectBase({ apiKey: 'your-api-key' })
5782
+ * const cb = new ConnectBase({ publicKey: 'your-public-key' })
5745
5783
  *
5746
5784
  * // 메시지 발행
5747
5785
  * await cb.queue.publish('queue-id', {
@@ -5958,9 +5996,15 @@ interface ConnectBaseConfig {
5958
5996
  */
5959
5997
  appId?: string;
5960
5998
  /**
5961
- * API Key (콘솔에서 발급)
5999
+ * Public Key (cb_pk_* 형식, 콘솔 → 설정 → API 에서 발급)
6000
+ * 브라우저/클라이언트에서 사용. RLS(Row Level Security) 적용.
6001
+ */
6002
+ publicKey?: string;
6003
+ /**
6004
+ * Secret Key (cb_sk_* 형식, 사용자 프로필에서 발급)
6005
+ * 서버 환경에서만 사용. 전체 권한 — 절대 노출 금지.
5962
6006
  */
5963
- apiKey?: string;
6007
+ secretKey?: string;
5964
6008
  /**
5965
6009
  * 토큰이 갱신될 때 호출되는 콜백
5966
6010
  */
@@ -5978,7 +6022,7 @@ interface ConnectBaseConfig {
5978
6022
  * @example
5979
6023
  * ```typescript
5980
6024
  * const cb = new ConnectBase({
5981
- * apiKey: 'your-api-key',
6025
+ * publicKey: 'your-public-key',
5982
6026
  * onTokenExpired: () => {
5983
6027
  * // 로그인 페이지로 리다이렉트
5984
6028
  * window.location.href = '/login'
@@ -6001,13 +6045,13 @@ interface ConnectBaseConfig {
6001
6045
  *
6002
6046
  * // 간단 초기화 (API Key만 필요)
6003
6047
  * const cb = new ConnectBase({
6004
- * apiKey: 'your-api-key'
6048
+ * publicKey: 'your-public-key'
6005
6049
  * })
6006
6050
  *
6007
6051
  * // 커스텀 서버 URL 사용 시
6008
6052
  * const cb = new ConnectBase({
6009
6053
  * baseUrl: 'https://your-server.com',
6010
- * apiKey: 'your-api-key'
6054
+ * publicKey: 'your-public-key'
6011
6055
  * })
6012
6056
  *
6013
6057
  * // 데이터 조회
@@ -6041,9 +6085,10 @@ declare class ConnectBase {
6041
6085
  */
6042
6086
  readonly storage: StorageAPI;
6043
6087
  /**
6044
- * API Key 관리 API
6088
+ * Public Key 관리 API
6045
6089
  */
6046
- readonly apiKey: ApiKeyAPI;
6090
+ readonly publicKey: PublicKeyAPI;
6091
+ /**
6047
6092
  /**
6048
6093
  * 서버리스 함수 API
6049
6094
  */
@@ -6123,4 +6168,4 @@ declare class ConnectBase {
6123
6168
  updateConfig(config: Partial<ConnectBaseConfig>): void;
6124
6169
  }
6125
6170
 
6126
- export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, 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 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 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 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 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 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, 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 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 UpdateVideoStorageRequest, 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 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 };
6171
+ 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, ApiError, 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 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, 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 TableIndex, type TableRelation, type TableSchema, 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 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 };