connectbase-client 6.14.0 → 6.16.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/CHANGELOG.md +44 -0
- package/README.md +31 -1
- package/dist/cli.js +1 -1
- package/dist/connect-base.umd.js +5 -5
- package/dist/index.d.mts +102 -5
- package/dist/index.d.ts +102 -5
- package/dist/index.js +143 -24
- package/dist/index.mjs +143 -24
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -153,7 +153,8 @@ declare class GameError extends Error {
|
|
|
153
153
|
toJSON(): Record<string, unknown>;
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
|
-
* 실시간(WebSocket) 연결 거부 코드. socket-server 가 연결을 받지
|
|
156
|
+
* 실시간(WebSocket) 연결 거부 코드. 서버(`cb.realtime` 의 socket-server, `cb.database` 실시간의 data-server)가 연결을 받지
|
|
157
|
+
* 않은 이유이고, 대응이 코드마다 다르다.
|
|
157
158
|
*
|
|
158
159
|
* | 코드 | 원인 | 재시도 | 권장 대응 |
|
|
159
160
|
* |------|------|--------|-----------|
|
|
@@ -169,8 +170,15 @@ declare class GameError extends Error {
|
|
|
169
170
|
* | `invalid_ws_ticket` | 1회용 연결 티켓이 만료됐거나 이미 쓰였다 | 가능 | `connect()` 가 새 티켓으로 스스로 다시 붙는다 |
|
|
170
171
|
* | `ws_ticket_unavailable` | 서버의 티켓 저장소 일시 장애 | 가능 | `connect()` 가 다시 시도하고, 티켓을 못 받으면 예전 방식으로 붙는다 |
|
|
171
172
|
* | `query_credential_rejected` | 서버가 URL 쿼리 자격증명을 받지 않도록 설정됐다 | 불가 | 1회용 티켓으로 붙는 SDK 로 올린다 |
|
|
173
|
+
* | `ambiguous_credentials` | 티켓과 다른 자격증명을 함께 보냈다 | 불가 | 직접 짠 클라이언트라면 둘 중 하나만 보낸다 |
|
|
174
|
+
* | `rate_limit_exceeded` | 요청 속도 제한 (`cb.database` 실시간) | 가능 | `retryAfterMs` 가 있으면 그 뒤에 스스로 다시 붙는다 |
|
|
175
|
+
* | `invalid_token` | cross-app OAuth 토큰 검증 실패 (`cb.database` 실시간) | 불가 | 새 토큰으로 다시 연결 |
|
|
176
|
+
* | `member_revoked` | 멤버 정지, 삭제, 세션 전체 종료 | 불가 | 다시 로그인. `message` 에 앱이 적은 정지 사유가 있다 |
|
|
177
|
+
* | `token_expired` | 연결 중 멤버 토큰이 만료됐고 갱신할 수 없다 | 불가 | 새 토큰으로 다시 연결 |
|
|
178
|
+
*
|
|
179
|
+
* 코드를 모르는 거부도 close 코드가 4429, 4500, 4503 이면 재시도 가능으로 본다.
|
|
172
180
|
*/
|
|
173
|
-
type RealtimeConnectionErrorCode = "connection_limit_exceeded" | "quota_exceeded" | "server_at_capacity" | "rate_limited" | "auth_unavailable" | "unauthorized" | "forbidden" | "invalid_user_id" | "internal_error" | "invalid_ws_ticket" | "ws_ticket_unavailable" | "query_credential_rejected" | (string & {});
|
|
181
|
+
type RealtimeConnectionErrorCode = "connection_limit_exceeded" | "quota_exceeded" | "server_at_capacity" | "rate_limited" | "auth_unavailable" | "unauthorized" | "forbidden" | "invalid_user_id" | "internal_error" | "invalid_ws_ticket" | "ws_ticket_unavailable" | "query_credential_rejected" | "ambiguous_credentials" | "rate_limit_exceeded" | "invalid_token" | "member_revoked" | "token_expired" | (string & {});
|
|
174
182
|
/**
|
|
175
183
|
* 서버가 이유를 밝히고 실시간 연결을 거부했을 때 `cb.realtime.connect()` 가 던지는 에러.
|
|
176
184
|
*
|
|
@@ -3720,6 +3728,13 @@ declare class DatabaseAPI {
|
|
|
3720
3728
|
*/
|
|
3721
3729
|
private realtimeTicket;
|
|
3722
3730
|
private doRealtimeConnect;
|
|
3731
|
+
/**
|
|
3732
|
+
* 서버가 연결을 거부했다(티켓 발급 거부, 또는 reject_mode=close 로 받은 업그레이드 거부). cb.realtime 과 같은 규칙이다 —
|
|
3733
|
+
* 다시 해서 될 거부(`retryable`: 일시 장애, 속도 제한, 동시접속 한도, 만료된 티켓)는 서버가 알려 준 시각(`retryAfterMs`)
|
|
3734
|
+
* 이후로 재연결을 이어 가고, 아니면(자격증명, 멤버 폐기, 할당량) 멈추고 `onRealtimeError` 로 알린다. 재시도를 다 써도
|
|
3735
|
+
* 거부되면 마지막 거부를 알린다.
|
|
3736
|
+
*/
|
|
3737
|
+
private handleRealtimeRejection;
|
|
3723
3738
|
/**
|
|
3724
3739
|
* 서버에 subscribe 메시지를 보내고 서버 subscription_id를 반환하는 Promise
|
|
3725
3740
|
*/
|
|
@@ -3729,6 +3744,10 @@ declare class DatabaseAPI {
|
|
|
3729
3744
|
*/
|
|
3730
3745
|
private resubscribeAll;
|
|
3731
3746
|
private handleRealtimeMessage;
|
|
3747
|
+
/**
|
|
3748
|
+
* 지수 백오프로 다시 붙는다. cause 는 이번 시도를 끝낸 서버의 거부다 — 알려 준 재시도 시각(`retryAfterMs`)보다 일찍 다시
|
|
3749
|
+
* 하지 않고, 재시도를 다 쓰면 일반 오류 대신 그 거부를 알린다.
|
|
3750
|
+
*/
|
|
3732
3751
|
private attemptRealtimeReconnect;
|
|
3733
3752
|
private startRealtimePing;
|
|
3734
3753
|
private stopRealtimePing;
|
|
@@ -9582,6 +9601,24 @@ declare class StorageAPI {
|
|
|
9582
9601
|
* 파일 URL 가져오기
|
|
9583
9602
|
*/
|
|
9584
9603
|
getFileUrl(file: FileItem): string | null;
|
|
9604
|
+
/**
|
|
9605
|
+
* 경로 주소 만들기 — 파일을 경로로 읽는 고정 주소 (요청을 보내지 않는다)
|
|
9606
|
+
*
|
|
9607
|
+
* 돌려주는 주소는 그 경로의 파일로 리다이렉트된다. 인증 헤더가 필요 없어 `<img src>`, `fetch()`,
|
|
9608
|
+
* 기준 주소 + 상대 경로 로딩에 쓸 수 있다. 파일의 `url`(직접 주소)에는 경로가 들어 있지 않으므로,
|
|
9609
|
+
* 한 폴더의 파일들을 상대 경로로 읽으려면 이 주소를 기준으로 쓴다.
|
|
9610
|
+
*
|
|
9611
|
+
* 대상은 주소만 알면 읽히는 스토리지(`server_write`, `public_read`, `shared`)다. `private` 스토리지는 404 이고
|
|
9612
|
+
* 응답의 `url`(서명 주소)을 써야 한다.
|
|
9613
|
+
*
|
|
9614
|
+
* @example
|
|
9615
|
+
* ```typescript
|
|
9616
|
+
* const base = cb.storage.getPathUrl(storageId, `/l2d/rigs/${rigId}/`)
|
|
9617
|
+
* const meta = await (await fetch(base + 'meta.json')).json()
|
|
9618
|
+
* img.src = base + 'base.webp'
|
|
9619
|
+
* ```
|
|
9620
|
+
*/
|
|
9621
|
+
getPathUrl(storageId: string, path: string): string;
|
|
9585
9622
|
/**
|
|
9586
9623
|
* 이미지 파일 여부 확인
|
|
9587
9624
|
*/
|
|
@@ -10982,7 +11019,7 @@ interface ReportPlatformBugRequest {
|
|
|
10982
11019
|
/** SDK 버전 override (자동 감지 실패 시). */
|
|
10983
11020
|
sdkVersion?: string;
|
|
10984
11021
|
/** SDK 플랫폼 override. */
|
|
10985
|
-
sdkPlatform?: "web" | "node" | "
|
|
11022
|
+
sdkPlatform?: "web" | "node" | "cli" | "mcp" | "other";
|
|
10986
11023
|
/** 환경 (production/staging/development). 기본 unknown. */
|
|
10987
11024
|
environment?: "production" | "staging" | "development" | "unknown";
|
|
10988
11025
|
}
|
|
@@ -11019,7 +11056,7 @@ interface PlatformIssueDetail {
|
|
|
11019
11056
|
status: "open" | "triaged" | "in_progress" | "resolved" | "wontfix" | "duplicate";
|
|
11020
11057
|
resolution_note?: string;
|
|
11021
11058
|
sdk_version?: string;
|
|
11022
|
-
sdk_platform?: "web" | "node" | "
|
|
11059
|
+
sdk_platform?: "web" | "node" | "cli" | "mcp" | "other";
|
|
11023
11060
|
environment?: "production" | "staging" | "development" | "unknown";
|
|
11024
11061
|
external_links?: Array<{
|
|
11025
11062
|
kind: string;
|
|
@@ -11764,6 +11801,45 @@ interface WebRTCWarning {
|
|
|
11764
11801
|
code: string;
|
|
11765
11802
|
message: string;
|
|
11766
11803
|
}
|
|
11804
|
+
/** SFU 방 입장 토큰 요청 (`cb.webrtc.getSFUToken`) */
|
|
11805
|
+
interface SFUTokenOptions {
|
|
11806
|
+
/** P2P 와 같은 `channel:room` 형식의 룸 ID (콜론이 없으면 default 채널) */
|
|
11807
|
+
roomId: string;
|
|
11808
|
+
/**
|
|
11809
|
+
* 보내기(마이크, 카메라, 화면)를 요청할지.
|
|
11810
|
+
* 생략하면 interactive 채널은 보내기, broadcast 채널은 받기 전용이다.
|
|
11811
|
+
* 요청이 받아들여졌는지는 응답의 `can_publish` 로 확인한다.
|
|
11812
|
+
*/
|
|
11813
|
+
publish?: boolean;
|
|
11814
|
+
/** 다른 참가자에게 보이는 표시 이름 (64자까지) */
|
|
11815
|
+
name?: string;
|
|
11816
|
+
/**
|
|
11817
|
+
* 같은 회원의 여러 기기(탭)를 구분하는 값 (영문, 숫자, `-`, 1~32자).
|
|
11818
|
+
* 없으면 같은 회원이 다시 들어올 때 앞 연결이 끊긴다. 익명은 매번 새 신원이라 필요 없다.
|
|
11819
|
+
*/
|
|
11820
|
+
device?: string;
|
|
11821
|
+
}
|
|
11822
|
+
/** SFU 방 입장 토큰 응답 */
|
|
11823
|
+
interface SFUTokenResponse {
|
|
11824
|
+
/** SFU 신호 서버 주소 (`livekit-client` 의 `room.connect(url, token)` 첫 인자) */
|
|
11825
|
+
url: string;
|
|
11826
|
+
/** 입장 토큰 (`room.connect(url, token)` 둘째 인자). 10분 안에 접속에 써야 한다 */
|
|
11827
|
+
token: string;
|
|
11828
|
+
/** 요청한 룸 ID */
|
|
11829
|
+
room_id: string;
|
|
11830
|
+
/** SFU 서버 안에서의 방 이름 */
|
|
11831
|
+
sfu_room: string;
|
|
11832
|
+
/** 이 참가자의 SFU 신원 (회원은 `member_<id>`, 익명은 `anon_<난수>`) */
|
|
11833
|
+
identity: string;
|
|
11834
|
+
/** 보내기 권한. false 면 서버가 이 참가자의 미디어를 받지 않는다 */
|
|
11835
|
+
can_publish: boolean;
|
|
11836
|
+
/** 데이터 보내기 권한 (보내기 권한을 따른다) */
|
|
11837
|
+
can_publish_data: boolean;
|
|
11838
|
+
/** 토큰 만료 시각 (Unix epoch 초) */
|
|
11839
|
+
expires_at: number;
|
|
11840
|
+
/** 보내기 요청을 받기 전용으로 낮췄을 때의 알림 */
|
|
11841
|
+
warning?: WebRTCWarning;
|
|
11842
|
+
}
|
|
11767
11843
|
/** 피어 정보 */
|
|
11768
11844
|
interface PeerInfo {
|
|
11769
11845
|
/** 피어 ID */
|
|
@@ -12122,6 +12198,27 @@ declare class WebRTCAPI {
|
|
|
12122
12198
|
* ```
|
|
12123
12199
|
*/
|
|
12124
12200
|
validate(): Promise<ValidateResponse>;
|
|
12201
|
+
/**
|
|
12202
|
+
* SFU 방 입장 토큰 발급
|
|
12203
|
+
*
|
|
12204
|
+
* `connect()` 는 미디어가 브라우저끼리 직접(P2P) 오가서 상대에게 IP 가 보이고 참가자가 많은 방을 만들 수 없다.
|
|
12205
|
+
* SFU 는 서버가 미디어를 받아 나눠 주는 방식이라 참가자끼리 IP 를 보지 못하고 수십 명 방이 가능하다.
|
|
12206
|
+
* 이 메서드는 채널 정책(인증, 역할, 정원)을 서버에서 판정한 입장 토큰을 돌려주고, 미디어 연결은 앱이
|
|
12207
|
+
* `livekit-client` 로 직접 한다(SDK 는 `livekit-client` 를 포함하지 않는다).
|
|
12208
|
+
*
|
|
12209
|
+
* @example
|
|
12210
|
+
* ```typescript
|
|
12211
|
+
* import { Room } from 'livekit-client'
|
|
12212
|
+
*
|
|
12213
|
+
* const sfu = await cb.webrtc.getSFUToken({ roomId: 'voice:fanmeeting-1', publish: true })
|
|
12214
|
+
* const room = new Room()
|
|
12215
|
+
* await room.connect(sfu.url, sfu.token)
|
|
12216
|
+
* if (sfu.can_publish) {
|
|
12217
|
+
* await room.localParticipant.setMicrophoneEnabled(true)
|
|
12218
|
+
* }
|
|
12219
|
+
* ```
|
|
12220
|
+
*/
|
|
12221
|
+
getSFUToken(options: SFUTokenOptions): Promise<SFUTokenResponse>;
|
|
12125
12222
|
/**
|
|
12126
12223
|
* 앱의 WebRTC 통계 조회
|
|
12127
12224
|
*/
|
|
@@ -12616,4 +12713,4 @@ declare class ConnectBase {
|
|
|
12616
12713
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
12617
12714
|
}
|
|
12618
12715
|
|
|
12619
|
-
export { AIAPI, type AIChatOptions, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, AIError, type AIErrorCode, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, type AcceptInvitationResponse, type AckMessagesRequest, type AdMobDailyReport, type AdMobReportResponse, type AdMobReportSummary, type AdReportResponse, type AdReportSummary, type AdmobConnectionInfo, AdsAPI, type AdsenseConnectionInfo, type AgenticSearchProgress, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppMemberDetail, type AppMemberIdentityDetail, type AppMemberIdentitySummary, type AppMemberList, type AppMemberListItem, type AppMemberProviderType, AppMembersAPI, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchOperationResult, type BatchSetPageMetaRequest, type BatchWriteResult, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type ChangePlanOptions, type ChangePlanPreview, type ChangePlanRequest, type ChangePlanWithPriceRef, type ChangePlanWithProduct, type Channel, type ChannelMembership, type ChannelStats, type ChargeWithBillingKeyAmount, type ChargeWithBillingKeyOptions, type ChargeWithBillingKeyProduct, 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 CreateCheckoutSessionOptions, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateCheckoutSessionWithAmount, type CreateCheckoutSessionWithProduct, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateLobbyRequest, type CreateOrganizationRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateRolePayload, type CreateRoleResult, type CreateRoomResult, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionOptions, type CreateSubscriptionRequest, type CreateSubscriptionWithAmount, type CreateSubscriptionWithProduct, type CreateTableRequest, type CreateTopicOptions, 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 DeleteBillingKeyResponse, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, EndpointAPI, type EndpointCallInit, 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 GameConfig, GameConfigAPI, type GameConfigPatch, type GameConnectionState, type GameConnectionStatus, type GameDelta, GameError, type GameErrorCode, 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 GeoBoundingBox, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, 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 ListAppMembersOptions, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListPaymentsOptions, 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 MemberChangePasswordRequest, type MemberCredentialMessageResponse, type MemberEmailVerificationConfirmRequest, type MemberEmailVerificationConfirmResponse, type MemberEmailVerificationRequest, type MemberInfoResponse, type MemberPasswordResetConfirmRequest, type MemberPasswordResetRequest, type MemberRedirectOption, type MemberSession, type MemberSessionList, type MemberSessionRevokeResponse, 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, type Organization, type OrganizationContext, type OrganizationInvitation, type OrganizationMember, type OrganizationMemberList, type OrganizationRole, OrganizationsAPI, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentListItem, type PaymentListResult, type PaymentMode, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PollUntilOptions, type PongMessage, type PopulateOption, type Position, type PostponeBillingRequest, type PreparePaymentOptions, type PreparePaymentRequest, type PreparePaymentResponse, type PreparePaymentWithAmount, type PreparePaymentWithProduct, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type ProrationMode, type PublicKeyItem, type PublicKeyPaymentMode, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type PushStatsResult, type PushTopicInfo, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, RealtimeConnectionError, type RealtimeConnectionErrorCode, type RealtimeMessage, RealtimeRequestError, type RealtimeSendPolicy, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, type RoomInfo, type RoomStaleMessage, type RoomSummary, type RoomsResponse, type RotatePublicKeyRequest, type RotatePublicKeyResponse, type SaveDialogOptions, type SaveDialogResult, type ScriptDetailResponse, type ScriptListResponse, type ScriptLogEntry, type ScriptLogsResponse, type ScriptMeta, type ScriptMetricsResponse, type ScriptVersion, type ScriptVersionListResponse, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type SendSuperChatOptions, type SendSuperChatResponse, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type SpeechRecognizeOptions, type SpeechResult, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StorageUploadProgress, type StreamContentPart, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamImageURLPart, type StreamMessage, type StreamOptions, type StreamSession, type StreamTextPart, 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 SuperChatType, type SuspendAppMemberOptions, type SuspendAppMemberResult, type SyncLostMessage, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionResult, type TransactionWrite, type TransactionWriteResult, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UnsuspendAppMemberResult, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateDocumentRequest, type UpdateLobbyRequest, type UpdateOrganizationRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateRolePayload, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoCompleteUploadResponse, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageAccessLevel, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WebRTCWarning, type WhereCondition, type WhereOperator, WsTicketError, ConnectBase as default, detectInAppBrowser, escapeToExternalBrowser, isWebTransportSupported, toAIError, toCreateRoomWire };
|
|
12716
|
+
export { AIAPI, type AIChatOptions, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, AIError, type AIErrorCode, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, type AcceptInvitationResponse, type AckMessagesRequest, type AdMobDailyReport, type AdMobReportResponse, type AdMobReportSummary, type AdReportResponse, type AdReportSummary, type AdmobConnectionInfo, AdsAPI, type AdsenseConnectionInfo, type AgenticSearchProgress, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppMemberDetail, type AppMemberIdentityDetail, type AppMemberIdentitySummary, type AppMemberList, type AppMemberListItem, type AppMemberProviderType, AppMembersAPI, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchOperationResult, type BatchSetPageMetaRequest, type BatchWriteResult, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type ChangePlanOptions, type ChangePlanPreview, type ChangePlanRequest, type ChangePlanWithPriceRef, type ChangePlanWithProduct, type Channel, type ChannelMembership, type ChannelStats, type ChargeWithBillingKeyAmount, type ChargeWithBillingKeyOptions, type ChargeWithBillingKeyProduct, 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 CreateCheckoutSessionOptions, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateCheckoutSessionWithAmount, type CreateCheckoutSessionWithProduct, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateLobbyRequest, type CreateOrganizationRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateRolePayload, type CreateRoleResult, type CreateRoomResult, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionOptions, type CreateSubscriptionRequest, type CreateSubscriptionWithAmount, type CreateSubscriptionWithProduct, type CreateTableRequest, type CreateTopicOptions, 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 DeleteBillingKeyResponse, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, EndpointAPI, type EndpointCallInit, 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 GameConfig, GameConfigAPI, type GameConfigPatch, type GameConnectionState, type GameConnectionStatus, type GameDelta, GameError, type GameErrorCode, 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 GeoBoundingBox, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, 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 ListAppMembersOptions, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListPaymentsOptions, 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 MemberChangePasswordRequest, type MemberCredentialMessageResponse, type MemberEmailVerificationConfirmRequest, type MemberEmailVerificationConfirmResponse, type MemberEmailVerificationRequest, type MemberInfoResponse, type MemberPasswordResetConfirmRequest, type MemberPasswordResetRequest, type MemberRedirectOption, type MemberSession, type MemberSessionList, type MemberSessionRevokeResponse, 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, type Organization, type OrganizationContext, type OrganizationInvitation, type OrganizationMember, type OrganizationMemberList, type OrganizationRole, OrganizationsAPI, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentListItem, type PaymentListResult, type PaymentMode, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PollUntilOptions, type PongMessage, type PopulateOption, type Position, type PostponeBillingRequest, type PreparePaymentOptions, type PreparePaymentRequest, type PreparePaymentResponse, type PreparePaymentWithAmount, type PreparePaymentWithProduct, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type ProrationMode, type PublicKeyItem, type PublicKeyPaymentMode, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type PushStatsResult, type PushTopicInfo, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, RealtimeConnectionError, type RealtimeConnectionErrorCode, type RealtimeMessage, RealtimeRequestError, type RealtimeSendPolicy, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, type RoomInfo, type RoomStaleMessage, type RoomSummary, type RoomsResponse, type RotatePublicKeyRequest, type RotatePublicKeyResponse, type SFUTokenOptions, type SFUTokenResponse, type SaveDialogOptions, type SaveDialogResult, type ScriptDetailResponse, type ScriptListResponse, type ScriptLogEntry, type ScriptLogsResponse, type ScriptMeta, type ScriptMetricsResponse, type ScriptVersion, type ScriptVersionListResponse, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type SendSuperChatOptions, type SendSuperChatResponse, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type SpeechRecognizeOptions, type SpeechResult, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StorageUploadProgress, type StreamContentPart, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamImageURLPart, type StreamMessage, type StreamOptions, type StreamSession, type StreamTextPart, 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 SuperChatType, type SuspendAppMemberOptions, type SuspendAppMemberResult, type SyncLostMessage, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionResult, type TransactionWrite, type TransactionWriteResult, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UnsuspendAppMemberResult, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateDocumentRequest, type UpdateLobbyRequest, type UpdateOrganizationRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateRolePayload, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoCompleteUploadResponse, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageAccessLevel, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WebRTCWarning, type WhereCondition, type WhereOperator, WsTicketError, ConnectBase as default, detectInAppBrowser, escapeToExternalBrowser, isWebTransportSupported, toAIError, toCreateRoomWire };
|
package/dist/index.d.ts
CHANGED
|
@@ -153,7 +153,8 @@ declare class GameError extends Error {
|
|
|
153
153
|
toJSON(): Record<string, unknown>;
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
|
-
* 실시간(WebSocket) 연결 거부 코드. socket-server 가 연결을 받지
|
|
156
|
+
* 실시간(WebSocket) 연결 거부 코드. 서버(`cb.realtime` 의 socket-server, `cb.database` 실시간의 data-server)가 연결을 받지
|
|
157
|
+
* 않은 이유이고, 대응이 코드마다 다르다.
|
|
157
158
|
*
|
|
158
159
|
* | 코드 | 원인 | 재시도 | 권장 대응 |
|
|
159
160
|
* |------|------|--------|-----------|
|
|
@@ -169,8 +170,15 @@ declare class GameError extends Error {
|
|
|
169
170
|
* | `invalid_ws_ticket` | 1회용 연결 티켓이 만료됐거나 이미 쓰였다 | 가능 | `connect()` 가 새 티켓으로 스스로 다시 붙는다 |
|
|
170
171
|
* | `ws_ticket_unavailable` | 서버의 티켓 저장소 일시 장애 | 가능 | `connect()` 가 다시 시도하고, 티켓을 못 받으면 예전 방식으로 붙는다 |
|
|
171
172
|
* | `query_credential_rejected` | 서버가 URL 쿼리 자격증명을 받지 않도록 설정됐다 | 불가 | 1회용 티켓으로 붙는 SDK 로 올린다 |
|
|
173
|
+
* | `ambiguous_credentials` | 티켓과 다른 자격증명을 함께 보냈다 | 불가 | 직접 짠 클라이언트라면 둘 중 하나만 보낸다 |
|
|
174
|
+
* | `rate_limit_exceeded` | 요청 속도 제한 (`cb.database` 실시간) | 가능 | `retryAfterMs` 가 있으면 그 뒤에 스스로 다시 붙는다 |
|
|
175
|
+
* | `invalid_token` | cross-app OAuth 토큰 검증 실패 (`cb.database` 실시간) | 불가 | 새 토큰으로 다시 연결 |
|
|
176
|
+
* | `member_revoked` | 멤버 정지, 삭제, 세션 전체 종료 | 불가 | 다시 로그인. `message` 에 앱이 적은 정지 사유가 있다 |
|
|
177
|
+
* | `token_expired` | 연결 중 멤버 토큰이 만료됐고 갱신할 수 없다 | 불가 | 새 토큰으로 다시 연결 |
|
|
178
|
+
*
|
|
179
|
+
* 코드를 모르는 거부도 close 코드가 4429, 4500, 4503 이면 재시도 가능으로 본다.
|
|
172
180
|
*/
|
|
173
|
-
type RealtimeConnectionErrorCode = "connection_limit_exceeded" | "quota_exceeded" | "server_at_capacity" | "rate_limited" | "auth_unavailable" | "unauthorized" | "forbidden" | "invalid_user_id" | "internal_error" | "invalid_ws_ticket" | "ws_ticket_unavailable" | "query_credential_rejected" | (string & {});
|
|
181
|
+
type RealtimeConnectionErrorCode = "connection_limit_exceeded" | "quota_exceeded" | "server_at_capacity" | "rate_limited" | "auth_unavailable" | "unauthorized" | "forbidden" | "invalid_user_id" | "internal_error" | "invalid_ws_ticket" | "ws_ticket_unavailable" | "query_credential_rejected" | "ambiguous_credentials" | "rate_limit_exceeded" | "invalid_token" | "member_revoked" | "token_expired" | (string & {});
|
|
174
182
|
/**
|
|
175
183
|
* 서버가 이유를 밝히고 실시간 연결을 거부했을 때 `cb.realtime.connect()` 가 던지는 에러.
|
|
176
184
|
*
|
|
@@ -3720,6 +3728,13 @@ declare class DatabaseAPI {
|
|
|
3720
3728
|
*/
|
|
3721
3729
|
private realtimeTicket;
|
|
3722
3730
|
private doRealtimeConnect;
|
|
3731
|
+
/**
|
|
3732
|
+
* 서버가 연결을 거부했다(티켓 발급 거부, 또는 reject_mode=close 로 받은 업그레이드 거부). cb.realtime 과 같은 규칙이다 —
|
|
3733
|
+
* 다시 해서 될 거부(`retryable`: 일시 장애, 속도 제한, 동시접속 한도, 만료된 티켓)는 서버가 알려 준 시각(`retryAfterMs`)
|
|
3734
|
+
* 이후로 재연결을 이어 가고, 아니면(자격증명, 멤버 폐기, 할당량) 멈추고 `onRealtimeError` 로 알린다. 재시도를 다 써도
|
|
3735
|
+
* 거부되면 마지막 거부를 알린다.
|
|
3736
|
+
*/
|
|
3737
|
+
private handleRealtimeRejection;
|
|
3723
3738
|
/**
|
|
3724
3739
|
* 서버에 subscribe 메시지를 보내고 서버 subscription_id를 반환하는 Promise
|
|
3725
3740
|
*/
|
|
@@ -3729,6 +3744,10 @@ declare class DatabaseAPI {
|
|
|
3729
3744
|
*/
|
|
3730
3745
|
private resubscribeAll;
|
|
3731
3746
|
private handleRealtimeMessage;
|
|
3747
|
+
/**
|
|
3748
|
+
* 지수 백오프로 다시 붙는다. cause 는 이번 시도를 끝낸 서버의 거부다 — 알려 준 재시도 시각(`retryAfterMs`)보다 일찍 다시
|
|
3749
|
+
* 하지 않고, 재시도를 다 쓰면 일반 오류 대신 그 거부를 알린다.
|
|
3750
|
+
*/
|
|
3732
3751
|
private attemptRealtimeReconnect;
|
|
3733
3752
|
private startRealtimePing;
|
|
3734
3753
|
private stopRealtimePing;
|
|
@@ -9582,6 +9601,24 @@ declare class StorageAPI {
|
|
|
9582
9601
|
* 파일 URL 가져오기
|
|
9583
9602
|
*/
|
|
9584
9603
|
getFileUrl(file: FileItem): string | null;
|
|
9604
|
+
/**
|
|
9605
|
+
* 경로 주소 만들기 — 파일을 경로로 읽는 고정 주소 (요청을 보내지 않는다)
|
|
9606
|
+
*
|
|
9607
|
+
* 돌려주는 주소는 그 경로의 파일로 리다이렉트된다. 인증 헤더가 필요 없어 `<img src>`, `fetch()`,
|
|
9608
|
+
* 기준 주소 + 상대 경로 로딩에 쓸 수 있다. 파일의 `url`(직접 주소)에는 경로가 들어 있지 않으므로,
|
|
9609
|
+
* 한 폴더의 파일들을 상대 경로로 읽으려면 이 주소를 기준으로 쓴다.
|
|
9610
|
+
*
|
|
9611
|
+
* 대상은 주소만 알면 읽히는 스토리지(`server_write`, `public_read`, `shared`)다. `private` 스토리지는 404 이고
|
|
9612
|
+
* 응답의 `url`(서명 주소)을 써야 한다.
|
|
9613
|
+
*
|
|
9614
|
+
* @example
|
|
9615
|
+
* ```typescript
|
|
9616
|
+
* const base = cb.storage.getPathUrl(storageId, `/l2d/rigs/${rigId}/`)
|
|
9617
|
+
* const meta = await (await fetch(base + 'meta.json')).json()
|
|
9618
|
+
* img.src = base + 'base.webp'
|
|
9619
|
+
* ```
|
|
9620
|
+
*/
|
|
9621
|
+
getPathUrl(storageId: string, path: string): string;
|
|
9585
9622
|
/**
|
|
9586
9623
|
* 이미지 파일 여부 확인
|
|
9587
9624
|
*/
|
|
@@ -10982,7 +11019,7 @@ interface ReportPlatformBugRequest {
|
|
|
10982
11019
|
/** SDK 버전 override (자동 감지 실패 시). */
|
|
10983
11020
|
sdkVersion?: string;
|
|
10984
11021
|
/** SDK 플랫폼 override. */
|
|
10985
|
-
sdkPlatform?: "web" | "node" | "
|
|
11022
|
+
sdkPlatform?: "web" | "node" | "cli" | "mcp" | "other";
|
|
10986
11023
|
/** 환경 (production/staging/development). 기본 unknown. */
|
|
10987
11024
|
environment?: "production" | "staging" | "development" | "unknown";
|
|
10988
11025
|
}
|
|
@@ -11019,7 +11056,7 @@ interface PlatformIssueDetail {
|
|
|
11019
11056
|
status: "open" | "triaged" | "in_progress" | "resolved" | "wontfix" | "duplicate";
|
|
11020
11057
|
resolution_note?: string;
|
|
11021
11058
|
sdk_version?: string;
|
|
11022
|
-
sdk_platform?: "web" | "node" | "
|
|
11059
|
+
sdk_platform?: "web" | "node" | "cli" | "mcp" | "other";
|
|
11023
11060
|
environment?: "production" | "staging" | "development" | "unknown";
|
|
11024
11061
|
external_links?: Array<{
|
|
11025
11062
|
kind: string;
|
|
@@ -11764,6 +11801,45 @@ interface WebRTCWarning {
|
|
|
11764
11801
|
code: string;
|
|
11765
11802
|
message: string;
|
|
11766
11803
|
}
|
|
11804
|
+
/** SFU 방 입장 토큰 요청 (`cb.webrtc.getSFUToken`) */
|
|
11805
|
+
interface SFUTokenOptions {
|
|
11806
|
+
/** P2P 와 같은 `channel:room` 형식의 룸 ID (콜론이 없으면 default 채널) */
|
|
11807
|
+
roomId: string;
|
|
11808
|
+
/**
|
|
11809
|
+
* 보내기(마이크, 카메라, 화면)를 요청할지.
|
|
11810
|
+
* 생략하면 interactive 채널은 보내기, broadcast 채널은 받기 전용이다.
|
|
11811
|
+
* 요청이 받아들여졌는지는 응답의 `can_publish` 로 확인한다.
|
|
11812
|
+
*/
|
|
11813
|
+
publish?: boolean;
|
|
11814
|
+
/** 다른 참가자에게 보이는 표시 이름 (64자까지) */
|
|
11815
|
+
name?: string;
|
|
11816
|
+
/**
|
|
11817
|
+
* 같은 회원의 여러 기기(탭)를 구분하는 값 (영문, 숫자, `-`, 1~32자).
|
|
11818
|
+
* 없으면 같은 회원이 다시 들어올 때 앞 연결이 끊긴다. 익명은 매번 새 신원이라 필요 없다.
|
|
11819
|
+
*/
|
|
11820
|
+
device?: string;
|
|
11821
|
+
}
|
|
11822
|
+
/** SFU 방 입장 토큰 응답 */
|
|
11823
|
+
interface SFUTokenResponse {
|
|
11824
|
+
/** SFU 신호 서버 주소 (`livekit-client` 의 `room.connect(url, token)` 첫 인자) */
|
|
11825
|
+
url: string;
|
|
11826
|
+
/** 입장 토큰 (`room.connect(url, token)` 둘째 인자). 10분 안에 접속에 써야 한다 */
|
|
11827
|
+
token: string;
|
|
11828
|
+
/** 요청한 룸 ID */
|
|
11829
|
+
room_id: string;
|
|
11830
|
+
/** SFU 서버 안에서의 방 이름 */
|
|
11831
|
+
sfu_room: string;
|
|
11832
|
+
/** 이 참가자의 SFU 신원 (회원은 `member_<id>`, 익명은 `anon_<난수>`) */
|
|
11833
|
+
identity: string;
|
|
11834
|
+
/** 보내기 권한. false 면 서버가 이 참가자의 미디어를 받지 않는다 */
|
|
11835
|
+
can_publish: boolean;
|
|
11836
|
+
/** 데이터 보내기 권한 (보내기 권한을 따른다) */
|
|
11837
|
+
can_publish_data: boolean;
|
|
11838
|
+
/** 토큰 만료 시각 (Unix epoch 초) */
|
|
11839
|
+
expires_at: number;
|
|
11840
|
+
/** 보내기 요청을 받기 전용으로 낮췄을 때의 알림 */
|
|
11841
|
+
warning?: WebRTCWarning;
|
|
11842
|
+
}
|
|
11767
11843
|
/** 피어 정보 */
|
|
11768
11844
|
interface PeerInfo {
|
|
11769
11845
|
/** 피어 ID */
|
|
@@ -12122,6 +12198,27 @@ declare class WebRTCAPI {
|
|
|
12122
12198
|
* ```
|
|
12123
12199
|
*/
|
|
12124
12200
|
validate(): Promise<ValidateResponse>;
|
|
12201
|
+
/**
|
|
12202
|
+
* SFU 방 입장 토큰 발급
|
|
12203
|
+
*
|
|
12204
|
+
* `connect()` 는 미디어가 브라우저끼리 직접(P2P) 오가서 상대에게 IP 가 보이고 참가자가 많은 방을 만들 수 없다.
|
|
12205
|
+
* SFU 는 서버가 미디어를 받아 나눠 주는 방식이라 참가자끼리 IP 를 보지 못하고 수십 명 방이 가능하다.
|
|
12206
|
+
* 이 메서드는 채널 정책(인증, 역할, 정원)을 서버에서 판정한 입장 토큰을 돌려주고, 미디어 연결은 앱이
|
|
12207
|
+
* `livekit-client` 로 직접 한다(SDK 는 `livekit-client` 를 포함하지 않는다).
|
|
12208
|
+
*
|
|
12209
|
+
* @example
|
|
12210
|
+
* ```typescript
|
|
12211
|
+
* import { Room } from 'livekit-client'
|
|
12212
|
+
*
|
|
12213
|
+
* const sfu = await cb.webrtc.getSFUToken({ roomId: 'voice:fanmeeting-1', publish: true })
|
|
12214
|
+
* const room = new Room()
|
|
12215
|
+
* await room.connect(sfu.url, sfu.token)
|
|
12216
|
+
* if (sfu.can_publish) {
|
|
12217
|
+
* await room.localParticipant.setMicrophoneEnabled(true)
|
|
12218
|
+
* }
|
|
12219
|
+
* ```
|
|
12220
|
+
*/
|
|
12221
|
+
getSFUToken(options: SFUTokenOptions): Promise<SFUTokenResponse>;
|
|
12125
12222
|
/**
|
|
12126
12223
|
* 앱의 WebRTC 통계 조회
|
|
12127
12224
|
*/
|
|
@@ -12616,4 +12713,4 @@ declare class ConnectBase {
|
|
|
12616
12713
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
12617
12714
|
}
|
|
12618
12715
|
|
|
12619
|
-
export { AIAPI, type AIChatOptions, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, AIError, type AIErrorCode, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, type AcceptInvitationResponse, type AckMessagesRequest, type AdMobDailyReport, type AdMobReportResponse, type AdMobReportSummary, type AdReportResponse, type AdReportSummary, type AdmobConnectionInfo, AdsAPI, type AdsenseConnectionInfo, type AgenticSearchProgress, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppMemberDetail, type AppMemberIdentityDetail, type AppMemberIdentitySummary, type AppMemberList, type AppMemberListItem, type AppMemberProviderType, AppMembersAPI, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchOperationResult, type BatchSetPageMetaRequest, type BatchWriteResult, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type ChangePlanOptions, type ChangePlanPreview, type ChangePlanRequest, type ChangePlanWithPriceRef, type ChangePlanWithProduct, type Channel, type ChannelMembership, type ChannelStats, type ChargeWithBillingKeyAmount, type ChargeWithBillingKeyOptions, type ChargeWithBillingKeyProduct, 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 CreateCheckoutSessionOptions, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateCheckoutSessionWithAmount, type CreateCheckoutSessionWithProduct, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateLobbyRequest, type CreateOrganizationRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateRolePayload, type CreateRoleResult, type CreateRoomResult, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionOptions, type CreateSubscriptionRequest, type CreateSubscriptionWithAmount, type CreateSubscriptionWithProduct, type CreateTableRequest, type CreateTopicOptions, 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 DeleteBillingKeyResponse, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, EndpointAPI, type EndpointCallInit, 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 GameConfig, GameConfigAPI, type GameConfigPatch, type GameConnectionState, type GameConnectionStatus, type GameDelta, GameError, type GameErrorCode, 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 GeoBoundingBox, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, 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 ListAppMembersOptions, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListPaymentsOptions, 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 MemberChangePasswordRequest, type MemberCredentialMessageResponse, type MemberEmailVerificationConfirmRequest, type MemberEmailVerificationConfirmResponse, type MemberEmailVerificationRequest, type MemberInfoResponse, type MemberPasswordResetConfirmRequest, type MemberPasswordResetRequest, type MemberRedirectOption, type MemberSession, type MemberSessionList, type MemberSessionRevokeResponse, 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, type Organization, type OrganizationContext, type OrganizationInvitation, type OrganizationMember, type OrganizationMemberList, type OrganizationRole, OrganizationsAPI, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentListItem, type PaymentListResult, type PaymentMode, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PollUntilOptions, type PongMessage, type PopulateOption, type Position, type PostponeBillingRequest, type PreparePaymentOptions, type PreparePaymentRequest, type PreparePaymentResponse, type PreparePaymentWithAmount, type PreparePaymentWithProduct, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type ProrationMode, type PublicKeyItem, type PublicKeyPaymentMode, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type PushStatsResult, type PushTopicInfo, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, RealtimeConnectionError, type RealtimeConnectionErrorCode, type RealtimeMessage, RealtimeRequestError, type RealtimeSendPolicy, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, type RoomInfo, type RoomStaleMessage, type RoomSummary, type RoomsResponse, type RotatePublicKeyRequest, type RotatePublicKeyResponse, type SaveDialogOptions, type SaveDialogResult, type ScriptDetailResponse, type ScriptListResponse, type ScriptLogEntry, type ScriptLogsResponse, type ScriptMeta, type ScriptMetricsResponse, type ScriptVersion, type ScriptVersionListResponse, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type SendSuperChatOptions, type SendSuperChatResponse, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type SpeechRecognizeOptions, type SpeechResult, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StorageUploadProgress, type StreamContentPart, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamImageURLPart, type StreamMessage, type StreamOptions, type StreamSession, type StreamTextPart, 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 SuperChatType, type SuspendAppMemberOptions, type SuspendAppMemberResult, type SyncLostMessage, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionResult, type TransactionWrite, type TransactionWriteResult, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UnsuspendAppMemberResult, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateDocumentRequest, type UpdateLobbyRequest, type UpdateOrganizationRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateRolePayload, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoCompleteUploadResponse, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageAccessLevel, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WebRTCWarning, type WhereCondition, type WhereOperator, WsTicketError, ConnectBase as default, detectInAppBrowser, escapeToExternalBrowser, isWebTransportSupported, toAIError, toCreateRoomWire };
|
|
12716
|
+
export { AIAPI, type AIChatOptions, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, AIError, type AIErrorCode, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, type AcceptInvitationResponse, type AckMessagesRequest, type AdMobDailyReport, type AdMobReportResponse, type AdMobReportSummary, type AdReportResponse, type AdReportSummary, type AdmobConnectionInfo, AdsAPI, type AdsenseConnectionInfo, type AgenticSearchProgress, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppMemberDetail, type AppMemberIdentityDetail, type AppMemberIdentitySummary, type AppMemberList, type AppMemberListItem, type AppMemberProviderType, AppMembersAPI, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchOperationResult, type BatchSetPageMetaRequest, type BatchWriteResult, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type ChangePlanOptions, type ChangePlanPreview, type ChangePlanRequest, type ChangePlanWithPriceRef, type ChangePlanWithProduct, type Channel, type ChannelMembership, type ChannelStats, type ChargeWithBillingKeyAmount, type ChargeWithBillingKeyOptions, type ChargeWithBillingKeyProduct, 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 CreateCheckoutSessionOptions, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateCheckoutSessionWithAmount, type CreateCheckoutSessionWithProduct, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateInvitationRequest, type CreateInvitationResponse, type CreateLobbyRequest, type CreateOrganizationRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateRolePayload, type CreateRoleResult, type CreateRoomResult, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionOptions, type CreateSubscriptionRequest, type CreateSubscriptionWithAmount, type CreateSubscriptionWithProduct, type CreateTableRequest, type CreateTopicOptions, 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 DeleteBillingKeyResponse, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, EndpointAPI, type EndpointCallInit, 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 GameConfig, GameConfigAPI, type GameConfigPatch, type GameConnectionState, type GameConnectionStatus, type GameDelta, GameError, type GameErrorCode, 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 GeoBoundingBox, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, 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 ListAppMembersOptions, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListPaymentsOptions, 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 MemberChangePasswordRequest, type MemberCredentialMessageResponse, type MemberEmailVerificationConfirmRequest, type MemberEmailVerificationConfirmResponse, type MemberEmailVerificationRequest, type MemberInfoResponse, type MemberPasswordResetConfirmRequest, type MemberPasswordResetRequest, type MemberRedirectOption, type MemberSession, type MemberSessionList, type MemberSessionRevokeResponse, 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, type Organization, type OrganizationContext, type OrganizationInvitation, type OrganizationMember, type OrganizationMemberList, type OrganizationRole, OrganizationsAPI, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentListItem, type PaymentListResult, type PaymentMode, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PollUntilOptions, type PongMessage, type PopulateOption, type Position, type PostponeBillingRequest, type PreparePaymentOptions, type PreparePaymentRequest, type PreparePaymentResponse, type PreparePaymentWithAmount, type PreparePaymentWithProduct, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type ProrationMode, type PublicKeyItem, type PublicKeyPaymentMode, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type PushStatsResult, type PushTopicInfo, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, RealtimeConnectionError, type RealtimeConnectionErrorCode, type RealtimeMessage, RealtimeRequestError, type RealtimeSendPolicy, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, type RoomInfo, type RoomStaleMessage, type RoomSummary, type RoomsResponse, type RotatePublicKeyRequest, type RotatePublicKeyResponse, type SFUTokenOptions, type SFUTokenResponse, type SaveDialogOptions, type SaveDialogResult, type ScriptDetailResponse, type ScriptListResponse, type ScriptLogEntry, type ScriptLogsResponse, type ScriptMeta, type ScriptMetricsResponse, type ScriptVersion, type ScriptVersionListResponse, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type SendSuperChatOptions, type SendSuperChatResponse, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type SpeechRecognizeOptions, type SpeechResult, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StorageUploadProgress, type StreamContentPart, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamImageURLPart, type StreamMessage, type StreamOptions, type StreamSession, type StreamTextPart, 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 SuperChatType, type SuspendAppMemberOptions, type SuspendAppMemberResult, type SyncLostMessage, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionResult, type TransactionWrite, type TransactionWriteResult, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UnsuspendAppMemberResult, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateDocumentRequest, type UpdateLobbyRequest, type UpdateOrganizationRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateRolePayload, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoCompleteUploadResponse, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageAccessLevel, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WebRTCWarning, type WhereCondition, type WhereOperator, WsTicketError, ConnectBase as default, detectInAppBrowser, escapeToExternalBrowser, isWebTransportSupported, toAIError, toCreateRoomWire };
|