connectbase-client 2.0.0 → 3.0.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
@@ -5532,6 +5532,65 @@ interface ReplayHighlight {
5532
5532
  actor_id: string;
5533
5533
  score: number;
5534
5534
  }
5535
+ /** Matchqueue ticket — attributes 는 free-form (rating/region 등 자유). */
5536
+ interface MatchqueueTicket {
5537
+ ticket_id: string;
5538
+ queue_key: string;
5539
+ attributes?: Record<string, unknown>;
5540
+ enqueued_at: string;
5541
+ ttl_at?: string;
5542
+ }
5543
+ interface MatchqueueListResponse {
5544
+ tickets: MatchqueueTicket[];
5545
+ count: number;
5546
+ }
5547
+ /**
5548
+ * v3.0 Leaderboard score entry — score 는 사용자 Lua 의 ELO/MMR 공식 결과.
5549
+ * rank 는 GetTop/GetRank 시점에만 채워진다 (저장은 안 됨).
5550
+ *
5551
+ * v2.x 의 LeaderboardEntry (player_id/rating/tier/wins/losses 등) 와 다른 시그니처라
5552
+ * 새 이름 사용. v2 LeaderboardEntry 는 v3.0 에서 deprecated.
5553
+ */
5554
+ interface LeaderboardScoreEntry {
5555
+ member: string;
5556
+ score: number;
5557
+ updated_at: string;
5558
+ rank?: number;
5559
+ }
5560
+ interface LeaderboardListResponse {
5561
+ entries: LeaderboardScoreEntry[];
5562
+ count: number;
5563
+ }
5564
+ /** Lua script — 메타 + 단일 버전. */
5565
+ interface ScriptMeta {
5566
+ app_id: string;
5567
+ name: string;
5568
+ active_version: number;
5569
+ latest_version: number;
5570
+ status: "active" | "staging" | "disabled";
5571
+ updated_at: string;
5572
+ }
5573
+ interface ScriptVersion {
5574
+ app_id: string;
5575
+ name: string;
5576
+ version: number;
5577
+ hash: string;
5578
+ code: string;
5579
+ uploaded_at: string;
5580
+ uploaded_by?: string;
5581
+ }
5582
+ interface ScriptListResponse {
5583
+ scripts: ScriptMeta[];
5584
+ count: number;
5585
+ }
5586
+ interface ScriptVersionListResponse {
5587
+ versions: ScriptVersion[];
5588
+ count: number;
5589
+ }
5590
+ interface ScriptDetailResponse {
5591
+ meta: ScriptMeta;
5592
+ active?: ScriptVersion;
5593
+ }
5535
5594
 
5536
5595
  /**
5537
5596
  * 게임 룸 클라이언트
@@ -5650,119 +5709,96 @@ declare class GameAPI {
5650
5709
  * @deprecated 현재 SDK public 경로로 노출되지 않습니다. 콘솔(admin) 에서 진행하거나 백엔드 public 경로 오픈을 요청하세요.
5651
5710
  */
5652
5711
  deleteRoom(_roomId: string): Promise<void>;
5712
+ joinSpectator(roomId: string, playerId: string): Promise<SpectatorInfo>;
5713
+ leaveSpectator(roomId: string, spectatorId: string): Promise<void>;
5714
+ getSpectators(roomId: string): Promise<SpectatorInfo[]>;
5715
+ joinVoiceChannel(roomId: string, playerId: string): Promise<VoiceChannel>;
5716
+ leaveVoiceChannel(roomId: string, playerId: string): Promise<void>;
5717
+ setMute(playerId: string, muted: boolean): Promise<void>;
5718
+ listReplays(roomId?: string): Promise<ReplayInfo[]>;
5719
+ getReplay(replayId: string): Promise<ReplayInfo>;
5720
+ downloadReplay(replayId: string): Promise<ArrayBuffer>;
5721
+ getReplayHighlights(replayId: string): Promise<ReplayHighlight[]>;
5722
+ private getHeaders;
5653
5723
  /**
5654
- * 매치메이킹 큐에 참가
5655
- */
5656
- joinQueue(req: JoinQueueRequest): Promise<MatchmakingTicket>;
5657
- /**
5658
- * 매치메이킹 큐에서 탈퇴
5659
- */
5660
- leaveQueue(ticketId: string): Promise<void>;
5661
- /**
5662
- * 매치메이킹 상태 조회
5663
- */
5664
- getMatchStatus(params: {
5665
- ticketId?: string;
5666
- playerId?: string;
5667
- }): Promise<MatchmakingTicket>;
5668
- /**
5669
- * 로비 목록 조회
5670
- */
5671
- listLobbies(): Promise<LobbyInfo[]>;
5672
- /**
5673
- * 로비 생성
5724
+ * matchqueue ticket 등록.
5725
+ *
5726
+ * @example
5727
+ * await cb.game.enqueueMatch(appId, "ranked", userId, {
5728
+ * rating: 1500, region: "asia", team_size: 5,
5729
+ * }, 60)
5730
+ *
5731
+ * @constraints appId/queueKey/ticketId 는 [a-zA-Z0-9_-] 만 허용. ttlSec=0 이면 만료 없음.
5674
5732
  */
5675
- createLobby(req: CreateLobbyRequest): Promise<LobbyInfo>;
5733
+ enqueueMatch(appId: string, queueKey: string, ticketId: string, attributes?: Record<string, unknown>, ttlSec?: number): Promise<MatchqueueTicket>;
5676
5734
  /**
5677
- * 로비 상세 조회
5735
+ * matchqueue 모든 ticket 목록 반환. 사용자 Lua 가 매칭 후보 선별에 사용.
5736
+ *
5737
+ * @example const tickets = await cb.game.listMatchqueue(appId, "ranked")
5678
5738
  */
5679
- getLobby(lobbyId: string): Promise<LobbyInfo>;
5739
+ listMatchqueue(appId: string, queueKey: string): Promise<MatchqueueListResponse>;
5680
5740
  /**
5681
- * 로비 참가
5741
+ * 매칭 큐에서 ticket 제거 (예: 사용자가 매칭 취소).
5682
5742
  */
5683
- joinLobby(lobbyId: string, playerId: string, displayName?: string, password?: string): Promise<{
5684
- lobbyId: string;
5685
- }>;
5743
+ cancelMatch(appId: string, queueKey: string, ticketId: string): Promise<void>;
5686
5744
  /**
5687
- * 로비 퇴장
5745
+ * leaderboard 점수 기록. mode="set" (기본, overwrite) 또는 "incr" (증감).
5746
+ *
5747
+ * @example
5748
+ * await cb.game.submitScore(appId, "global_elo", userId, 32, "incr")
5688
5749
  */
5689
- leaveLobby(lobbyId: string, playerId: string): Promise<void>;
5750
+ submitScore(appId: string, leaderboardKey: string, member: string, score: number, mode?: "set" | "incr"): Promise<LeaderboardScoreEntry>;
5690
5751
  /**
5691
- * 레디 상태 토글
5752
+ * 상위 n 명 조회 (기본 10).
5692
5753
  */
5693
- toggleReady(lobbyId: string, playerId: string, ready: boolean): Promise<void>;
5754
+ getTopScores(appId: string, leaderboardKey: string, n?: number): Promise<LeaderboardListResponse>;
5694
5755
  /**
5695
- * 게임 시작 (호스트만)
5756
+ * 단일 member 의 rank + score.
5696
5757
  */
5697
- startGame(lobbyId: string, hostId: string): Promise<{
5698
- roomId: string;
5699
- }>;
5758
+ getMemberRank(appId: string, leaderboardKey: string, member: string): Promise<LeaderboardScoreEntry>;
5700
5759
  /**
5701
- * 플레이어 추방 (호스트만)
5760
+ * member 주변 (위 above 명 + 본인 + 아래 below 명) 조회.
5702
5761
  */
5703
- kickPlayer(lobbyId: string, hostId: string, targetPlayerId: string): Promise<void>;
5762
+ getRankAround(appId: string, leaderboardKey: string, member: string, above?: number, below?: number): Promise<LeaderboardListResponse>;
5704
5763
  /**
5705
- * 로비 설정 업데이트 (호스트만)
5764
+ * leaderboard 전체 reset (시즌 종료 시).
5706
5765
  */
5707
- updateLobby(lobbyId: string, req: UpdateLobbyRequest): Promise<LobbyInfo>;
5766
+ resetLeaderboard(appId: string, leaderboardKey: string): Promise<void>;
5708
5767
  /**
5709
- * 로비 채팅 전송
5768
+ * 특정 member 만 제거 (계정 삭제 등).
5710
5769
  */
5711
- sendLobbyChat(lobbyId: string, playerId: string, message: string): Promise<void>;
5770
+ removeFromLeaderboard(appId: string, leaderboardKey: string, member: string): Promise<void>;
5712
5771
  /**
5713
- * 플레이어 초대
5772
+ * 스크립트 버전 업로드 (latest+1). idempotent — 동일 hash 면 새 버전 만들지 않음.
5773
+ *
5774
+ * @example
5775
+ * await cb.game.uploadScript(appId, "ranked_br", fs.readFileSync("./ranked.lua", "utf-8"))
5714
5776
  */
5715
- invitePlayer(lobbyId: string, inviterId: string, inviteeId: string): Promise<LobbyInvite>;
5777
+ uploadScript(appId: string, name: string, code: string): Promise<ScriptVersion>;
5716
5778
  /**
5717
- * 초대 수락
5779
+ * app 의 모든 스크립트 메타데이터 목록.
5718
5780
  */
5719
- acceptInvite(inviteId: string, playerId: string, displayName?: string): Promise<{
5720
- lobbyId: string;
5721
- }>;
5781
+ listScripts(appId: string): Promise<ScriptListResponse>;
5722
5782
  /**
5723
- * 초대 거절
5783
+ * 단일 스크립트 메타 + active version code.
5724
5784
  */
5725
- declineInvite(inviteId: string, playerId: string): Promise<void>;
5785
+ getScript(appId: string, name: string): Promise<ScriptDetailResponse>;
5726
5786
  /**
5727
- * 플레이어의 받은 초대 목록
5787
+ * 단일 스크립트의 모든 버전 이력.
5728
5788
  */
5729
- getPlayerInvites(playerId: string): Promise<LobbyInvite[]>;
5730
- createParty(playerId: string, maxSize?: number): Promise<PartyInfo>;
5789
+ listScriptVersions(appId: string, name: string): Promise<ScriptVersionListResponse>;
5731
5790
  /**
5732
- * @deprecated 백엔드에서 직접 join 엔드포인트 미제공 `inviteToParty``acceptPartyInvite` 플로우 사용
5791
+ * 특정 버전 활성화 (hot reload 자동). version=0 또는 미지정 latest 활성화.
5733
5792
  */
5734
- joinParty(_partyId: string, _playerId: string): Promise<PartyInfo>;
5793
+ activateScript(appId: string, name: string, version?: number): Promise<ScriptMeta>;
5735
5794
  /**
5736
- * 파티 초대 수락
5737
- *
5738
- * `inviteToParty` 로 생성된 초대 ID 를 수락하여 파티에 합류한다.
5739
- * 로비 초대(`acceptInvite`) 와 다른 엔드포인트 (`/v1/game/:appID/invites/:inviteID/accept`).
5795
+ * 직전 active 버전으로 롤백 (hot reload 자동).
5740
5796
  */
5741
- acceptPartyInvite(inviteId: string, playerId: string, displayName?: string): Promise<PartyInfo>;
5797
+ rollbackScript(appId: string, name: string): Promise<ScriptMeta>;
5742
5798
  /**
5743
- * 파티 초대 거절
5744
- *
5745
- * `inviteToParty` 로 생성된 초대 ID 를 거절한다.
5799
+ * 스크립트 비활성화 (status=disabled). 코드/버전은 보존.
5746
5800
  */
5747
- declinePartyInvite(inviteId: string, playerId: string): Promise<void>;
5748
- leaveParty(partyId: string, playerId: string): Promise<void>;
5749
- kickFromParty(partyId: string, playerId: string): Promise<void>;
5750
- inviteToParty(partyId: string, inviterId: string, inviteeId: string): Promise<PartyInvite>;
5751
- sendPartyChat(partyId: string, playerId: string, message: string): Promise<void>;
5752
- joinSpectator(roomId: string, playerId: string): Promise<SpectatorInfo>;
5753
- leaveSpectator(roomId: string, spectatorId: string): Promise<void>;
5754
- getSpectators(roomId: string): Promise<SpectatorInfo[]>;
5755
- getLeaderboard(gameType: string, top?: number, season?: string): Promise<LeaderboardEntry[]>;
5756
- getPlayerStats(playerId: string, gameType: string, season?: string): Promise<PlayerStats>;
5757
- getPlayerRank(playerId: string, gameType: string, season?: string): Promise<LeaderboardEntry>;
5758
- joinVoiceChannel(roomId: string, playerId: string): Promise<VoiceChannel>;
5759
- leaveVoiceChannel(roomId: string, playerId: string): Promise<void>;
5760
- setMute(playerId: string, muted: boolean): Promise<void>;
5761
- listReplays(roomId?: string): Promise<ReplayInfo[]>;
5762
- getReplay(replayId: string): Promise<ReplayInfo>;
5763
- downloadReplay(replayId: string): Promise<ArrayBuffer>;
5764
- getReplayHighlights(replayId: string): Promise<ReplayHighlight[]>;
5765
- private getHeaders;
5801
+ disableScript(appId: string, name: string): Promise<void>;
5766
5802
  }
5767
5803
 
5768
5804
  interface AdsenseConnectionInfo {
@@ -7149,4 +7185,4 @@ declare class ConnectBase {
7149
7185
  updateConfig(config: Partial<ConnectBaseConfig>): void;
7150
7186
  }
7151
7187
 
7152
- 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 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 };
7188
+ 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 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 LeaderboardListResponse, type LeaderboardScoreEntry, 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 MatchqueueListResponse, type MatchqueueTicket, 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 ScriptDetailResponse, type ScriptListResponse, type ScriptMeta, type ScriptVersion, type ScriptVersionListResponse, 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 };
package/dist/index.d.ts CHANGED
@@ -5532,6 +5532,65 @@ interface ReplayHighlight {
5532
5532
  actor_id: string;
5533
5533
  score: number;
5534
5534
  }
5535
+ /** Matchqueue ticket — attributes 는 free-form (rating/region 등 자유). */
5536
+ interface MatchqueueTicket {
5537
+ ticket_id: string;
5538
+ queue_key: string;
5539
+ attributes?: Record<string, unknown>;
5540
+ enqueued_at: string;
5541
+ ttl_at?: string;
5542
+ }
5543
+ interface MatchqueueListResponse {
5544
+ tickets: MatchqueueTicket[];
5545
+ count: number;
5546
+ }
5547
+ /**
5548
+ * v3.0 Leaderboard score entry — score 는 사용자 Lua 의 ELO/MMR 공식 결과.
5549
+ * rank 는 GetTop/GetRank 시점에만 채워진다 (저장은 안 됨).
5550
+ *
5551
+ * v2.x 의 LeaderboardEntry (player_id/rating/tier/wins/losses 등) 와 다른 시그니처라
5552
+ * 새 이름 사용. v2 LeaderboardEntry 는 v3.0 에서 deprecated.
5553
+ */
5554
+ interface LeaderboardScoreEntry {
5555
+ member: string;
5556
+ score: number;
5557
+ updated_at: string;
5558
+ rank?: number;
5559
+ }
5560
+ interface LeaderboardListResponse {
5561
+ entries: LeaderboardScoreEntry[];
5562
+ count: number;
5563
+ }
5564
+ /** Lua script — 메타 + 단일 버전. */
5565
+ interface ScriptMeta {
5566
+ app_id: string;
5567
+ name: string;
5568
+ active_version: number;
5569
+ latest_version: number;
5570
+ status: "active" | "staging" | "disabled";
5571
+ updated_at: string;
5572
+ }
5573
+ interface ScriptVersion {
5574
+ app_id: string;
5575
+ name: string;
5576
+ version: number;
5577
+ hash: string;
5578
+ code: string;
5579
+ uploaded_at: string;
5580
+ uploaded_by?: string;
5581
+ }
5582
+ interface ScriptListResponse {
5583
+ scripts: ScriptMeta[];
5584
+ count: number;
5585
+ }
5586
+ interface ScriptVersionListResponse {
5587
+ versions: ScriptVersion[];
5588
+ count: number;
5589
+ }
5590
+ interface ScriptDetailResponse {
5591
+ meta: ScriptMeta;
5592
+ active?: ScriptVersion;
5593
+ }
5535
5594
 
5536
5595
  /**
5537
5596
  * 게임 룸 클라이언트
@@ -5650,119 +5709,96 @@ declare class GameAPI {
5650
5709
  * @deprecated 현재 SDK public 경로로 노출되지 않습니다. 콘솔(admin) 에서 진행하거나 백엔드 public 경로 오픈을 요청하세요.
5651
5710
  */
5652
5711
  deleteRoom(_roomId: string): Promise<void>;
5712
+ joinSpectator(roomId: string, playerId: string): Promise<SpectatorInfo>;
5713
+ leaveSpectator(roomId: string, spectatorId: string): Promise<void>;
5714
+ getSpectators(roomId: string): Promise<SpectatorInfo[]>;
5715
+ joinVoiceChannel(roomId: string, playerId: string): Promise<VoiceChannel>;
5716
+ leaveVoiceChannel(roomId: string, playerId: string): Promise<void>;
5717
+ setMute(playerId: string, muted: boolean): Promise<void>;
5718
+ listReplays(roomId?: string): Promise<ReplayInfo[]>;
5719
+ getReplay(replayId: string): Promise<ReplayInfo>;
5720
+ downloadReplay(replayId: string): Promise<ArrayBuffer>;
5721
+ getReplayHighlights(replayId: string): Promise<ReplayHighlight[]>;
5722
+ private getHeaders;
5653
5723
  /**
5654
- * 매치메이킹 큐에 참가
5655
- */
5656
- joinQueue(req: JoinQueueRequest): Promise<MatchmakingTicket>;
5657
- /**
5658
- * 매치메이킹 큐에서 탈퇴
5659
- */
5660
- leaveQueue(ticketId: string): Promise<void>;
5661
- /**
5662
- * 매치메이킹 상태 조회
5663
- */
5664
- getMatchStatus(params: {
5665
- ticketId?: string;
5666
- playerId?: string;
5667
- }): Promise<MatchmakingTicket>;
5668
- /**
5669
- * 로비 목록 조회
5670
- */
5671
- listLobbies(): Promise<LobbyInfo[]>;
5672
- /**
5673
- * 로비 생성
5724
+ * matchqueue ticket 등록.
5725
+ *
5726
+ * @example
5727
+ * await cb.game.enqueueMatch(appId, "ranked", userId, {
5728
+ * rating: 1500, region: "asia", team_size: 5,
5729
+ * }, 60)
5730
+ *
5731
+ * @constraints appId/queueKey/ticketId 는 [a-zA-Z0-9_-] 만 허용. ttlSec=0 이면 만료 없음.
5674
5732
  */
5675
- createLobby(req: CreateLobbyRequest): Promise<LobbyInfo>;
5733
+ enqueueMatch(appId: string, queueKey: string, ticketId: string, attributes?: Record<string, unknown>, ttlSec?: number): Promise<MatchqueueTicket>;
5676
5734
  /**
5677
- * 로비 상세 조회
5735
+ * matchqueue 모든 ticket 목록 반환. 사용자 Lua 가 매칭 후보 선별에 사용.
5736
+ *
5737
+ * @example const tickets = await cb.game.listMatchqueue(appId, "ranked")
5678
5738
  */
5679
- getLobby(lobbyId: string): Promise<LobbyInfo>;
5739
+ listMatchqueue(appId: string, queueKey: string): Promise<MatchqueueListResponse>;
5680
5740
  /**
5681
- * 로비 참가
5741
+ * 매칭 큐에서 ticket 제거 (예: 사용자가 매칭 취소).
5682
5742
  */
5683
- joinLobby(lobbyId: string, playerId: string, displayName?: string, password?: string): Promise<{
5684
- lobbyId: string;
5685
- }>;
5743
+ cancelMatch(appId: string, queueKey: string, ticketId: string): Promise<void>;
5686
5744
  /**
5687
- * 로비 퇴장
5745
+ * leaderboard 점수 기록. mode="set" (기본, overwrite) 또는 "incr" (증감).
5746
+ *
5747
+ * @example
5748
+ * await cb.game.submitScore(appId, "global_elo", userId, 32, "incr")
5688
5749
  */
5689
- leaveLobby(lobbyId: string, playerId: string): Promise<void>;
5750
+ submitScore(appId: string, leaderboardKey: string, member: string, score: number, mode?: "set" | "incr"): Promise<LeaderboardScoreEntry>;
5690
5751
  /**
5691
- * 레디 상태 토글
5752
+ * 상위 n 명 조회 (기본 10).
5692
5753
  */
5693
- toggleReady(lobbyId: string, playerId: string, ready: boolean): Promise<void>;
5754
+ getTopScores(appId: string, leaderboardKey: string, n?: number): Promise<LeaderboardListResponse>;
5694
5755
  /**
5695
- * 게임 시작 (호스트만)
5756
+ * 단일 member 의 rank + score.
5696
5757
  */
5697
- startGame(lobbyId: string, hostId: string): Promise<{
5698
- roomId: string;
5699
- }>;
5758
+ getMemberRank(appId: string, leaderboardKey: string, member: string): Promise<LeaderboardScoreEntry>;
5700
5759
  /**
5701
- * 플레이어 추방 (호스트만)
5760
+ * member 주변 (위 above 명 + 본인 + 아래 below 명) 조회.
5702
5761
  */
5703
- kickPlayer(lobbyId: string, hostId: string, targetPlayerId: string): Promise<void>;
5762
+ getRankAround(appId: string, leaderboardKey: string, member: string, above?: number, below?: number): Promise<LeaderboardListResponse>;
5704
5763
  /**
5705
- * 로비 설정 업데이트 (호스트만)
5764
+ * leaderboard 전체 reset (시즌 종료 시).
5706
5765
  */
5707
- updateLobby(lobbyId: string, req: UpdateLobbyRequest): Promise<LobbyInfo>;
5766
+ resetLeaderboard(appId: string, leaderboardKey: string): Promise<void>;
5708
5767
  /**
5709
- * 로비 채팅 전송
5768
+ * 특정 member 만 제거 (계정 삭제 등).
5710
5769
  */
5711
- sendLobbyChat(lobbyId: string, playerId: string, message: string): Promise<void>;
5770
+ removeFromLeaderboard(appId: string, leaderboardKey: string, member: string): Promise<void>;
5712
5771
  /**
5713
- * 플레이어 초대
5772
+ * 스크립트 버전 업로드 (latest+1). idempotent — 동일 hash 면 새 버전 만들지 않음.
5773
+ *
5774
+ * @example
5775
+ * await cb.game.uploadScript(appId, "ranked_br", fs.readFileSync("./ranked.lua", "utf-8"))
5714
5776
  */
5715
- invitePlayer(lobbyId: string, inviterId: string, inviteeId: string): Promise<LobbyInvite>;
5777
+ uploadScript(appId: string, name: string, code: string): Promise<ScriptVersion>;
5716
5778
  /**
5717
- * 초대 수락
5779
+ * app 의 모든 스크립트 메타데이터 목록.
5718
5780
  */
5719
- acceptInvite(inviteId: string, playerId: string, displayName?: string): Promise<{
5720
- lobbyId: string;
5721
- }>;
5781
+ listScripts(appId: string): Promise<ScriptListResponse>;
5722
5782
  /**
5723
- * 초대 거절
5783
+ * 단일 스크립트 메타 + active version code.
5724
5784
  */
5725
- declineInvite(inviteId: string, playerId: string): Promise<void>;
5785
+ getScript(appId: string, name: string): Promise<ScriptDetailResponse>;
5726
5786
  /**
5727
- * 플레이어의 받은 초대 목록
5787
+ * 단일 스크립트의 모든 버전 이력.
5728
5788
  */
5729
- getPlayerInvites(playerId: string): Promise<LobbyInvite[]>;
5730
- createParty(playerId: string, maxSize?: number): Promise<PartyInfo>;
5789
+ listScriptVersions(appId: string, name: string): Promise<ScriptVersionListResponse>;
5731
5790
  /**
5732
- * @deprecated 백엔드에서 직접 join 엔드포인트 미제공 `inviteToParty``acceptPartyInvite` 플로우 사용
5791
+ * 특정 버전 활성화 (hot reload 자동). version=0 또는 미지정 latest 활성화.
5733
5792
  */
5734
- joinParty(_partyId: string, _playerId: string): Promise<PartyInfo>;
5793
+ activateScript(appId: string, name: string, version?: number): Promise<ScriptMeta>;
5735
5794
  /**
5736
- * 파티 초대 수락
5737
- *
5738
- * `inviteToParty` 로 생성된 초대 ID 를 수락하여 파티에 합류한다.
5739
- * 로비 초대(`acceptInvite`) 와 다른 엔드포인트 (`/v1/game/:appID/invites/:inviteID/accept`).
5795
+ * 직전 active 버전으로 롤백 (hot reload 자동).
5740
5796
  */
5741
- acceptPartyInvite(inviteId: string, playerId: string, displayName?: string): Promise<PartyInfo>;
5797
+ rollbackScript(appId: string, name: string): Promise<ScriptMeta>;
5742
5798
  /**
5743
- * 파티 초대 거절
5744
- *
5745
- * `inviteToParty` 로 생성된 초대 ID 를 거절한다.
5799
+ * 스크립트 비활성화 (status=disabled). 코드/버전은 보존.
5746
5800
  */
5747
- declinePartyInvite(inviteId: string, playerId: string): Promise<void>;
5748
- leaveParty(partyId: string, playerId: string): Promise<void>;
5749
- kickFromParty(partyId: string, playerId: string): Promise<void>;
5750
- inviteToParty(partyId: string, inviterId: string, inviteeId: string): Promise<PartyInvite>;
5751
- sendPartyChat(partyId: string, playerId: string, message: string): Promise<void>;
5752
- joinSpectator(roomId: string, playerId: string): Promise<SpectatorInfo>;
5753
- leaveSpectator(roomId: string, spectatorId: string): Promise<void>;
5754
- getSpectators(roomId: string): Promise<SpectatorInfo[]>;
5755
- getLeaderboard(gameType: string, top?: number, season?: string): Promise<LeaderboardEntry[]>;
5756
- getPlayerStats(playerId: string, gameType: string, season?: string): Promise<PlayerStats>;
5757
- getPlayerRank(playerId: string, gameType: string, season?: string): Promise<LeaderboardEntry>;
5758
- joinVoiceChannel(roomId: string, playerId: string): Promise<VoiceChannel>;
5759
- leaveVoiceChannel(roomId: string, playerId: string): Promise<void>;
5760
- setMute(playerId: string, muted: boolean): Promise<void>;
5761
- listReplays(roomId?: string): Promise<ReplayInfo[]>;
5762
- getReplay(replayId: string): Promise<ReplayInfo>;
5763
- downloadReplay(replayId: string): Promise<ArrayBuffer>;
5764
- getReplayHighlights(replayId: string): Promise<ReplayHighlight[]>;
5765
- private getHeaders;
5801
+ disableScript(appId: string, name: string): Promise<void>;
5766
5802
  }
5767
5803
 
5768
5804
  interface AdsenseConnectionInfo {
@@ -7149,4 +7185,4 @@ declare class ConnectBase {
7149
7185
  updateConfig(config: Partial<ConnectBaseConfig>): void;
7150
7186
  }
7151
7187
 
7152
- 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 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 };
7188
+ 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 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 LeaderboardListResponse, type LeaderboardScoreEntry, 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 MatchqueueListResponse, type MatchqueueTicket, 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 ScriptDetailResponse, type ScriptListResponse, type ScriptMeta, type ScriptVersion, type ScriptVersionListResponse, 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 };