connectbase-client 3.37.0 → 3.39.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 +40 -0
- package/README.md +1 -4
- package/dist/connect-base.umd.js +5 -5
- package/dist/index.d.mts +49 -102
- package/dist/index.d.ts +49 -102
- package/dist/index.js +50 -204
- package/dist/index.mjs +50 -203
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -12,30 +12,6 @@ declare class ApiError extends Error {
|
|
|
12
12
|
declare class AuthError extends Error {
|
|
13
13
|
constructor(message: string);
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* `cb.auth.signInAsGuestMember()` 호출 시 이미 활성화된 비-게스트 세션이 감지되면 발생.
|
|
17
|
-
*
|
|
18
|
-
* 같은 origin + 같은 publicKey 에서 OAuth/Email 로그인이 살아있는 상태로
|
|
19
|
-
* 우발적으로 게스트 로그인이 호출되면 메인 토큰 슬롯이 silent 로 덮어써지는
|
|
20
|
-
* 회귀(platform-issue 019e6c5d)를 차단하기 위한 가드.
|
|
21
|
-
*
|
|
22
|
-
* 명시적으로 활성 세션을 게스트로 교체하려면 `{ allowOverrideExistingSession: true }` 를
|
|
23
|
-
* 옵션으로 넘기거나, 먼저 `cb.auth.signOut()` 으로 정리할 것.
|
|
24
|
-
*
|
|
25
|
-
* ```ts
|
|
26
|
-
* try {
|
|
27
|
-
* await cb.auth.signInAsGuestMember()
|
|
28
|
-
* } catch (e) {
|
|
29
|
-
* if (e instanceof GuestSessionConflictError) {
|
|
30
|
-
* // 이미 로그인된 사용자가 있다는 뜻 — 게스트로 강제 전환할지 사용자에게 물어볼 것
|
|
31
|
-
* }
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare class GuestSessionConflictError extends Error {
|
|
36
|
-
code: string;
|
|
37
|
-
constructor();
|
|
38
|
-
}
|
|
39
15
|
/**
|
|
40
16
|
* GameError 는 game-server 가 surface 한 `error` 메시지 (createRoom/joinRoom/sendAction
|
|
41
17
|
* 응답 또는 broadcastScriptError) 를 client 측에서 일관된 형태로 다루기 위한 예외 클래스.
|
|
@@ -759,12 +735,6 @@ declare class AnalyticsAPI {
|
|
|
759
735
|
private log;
|
|
760
736
|
}
|
|
761
737
|
|
|
762
|
-
/** 앱 멤버 게스트 가입 응답 */
|
|
763
|
-
interface GuestMemberSignInResponse {
|
|
764
|
-
member_id: string;
|
|
765
|
-
access_token: string;
|
|
766
|
-
refresh_token: string;
|
|
767
|
-
}
|
|
768
738
|
/** 앱 멤버 회원가입 요청 */
|
|
769
739
|
interface MemberSignUpRequest {
|
|
770
740
|
login_id: string;
|
|
@@ -801,9 +771,8 @@ interface MemberInfoResponse {
|
|
|
801
771
|
/** 멤버 역할 — RLS 규칙에서 `auth.role` 로 참조 (예: "admin", "moderator") */
|
|
802
772
|
role?: string;
|
|
803
773
|
/**
|
|
804
|
-
* 현재 세션이 게스트(
|
|
805
|
-
*
|
|
806
|
-
* 멤버는 true. 게스트 둔갑(silent overwrite) 감지/복구용 결정적 신호다.
|
|
774
|
+
* 현재 세션이 게스트(identity 가 전혀 없는 멤버 또는 레거시 GUEST identity)인지 여부.
|
|
775
|
+
* 신규 게스트 로그인은 제거됐으나, 기존 게스트 멤버 식별을 위해 유지된다.
|
|
807
776
|
*/
|
|
808
777
|
is_guest?: boolean;
|
|
809
778
|
/**
|
|
@@ -828,30 +797,12 @@ interface UpdateCustomDataResponse {
|
|
|
828
797
|
interface AuthSettingsResponse {
|
|
829
798
|
/** 아이디/비밀번호 로그인 허용 여부 */
|
|
830
799
|
allow_id_password_login: boolean;
|
|
831
|
-
/** 게스트 로그인 허용 여부 */
|
|
832
|
-
allow_guest_login: boolean;
|
|
833
800
|
/** 활성화된 OAuth 프로바이더 목록 (GOOGLE, KAKAO, NAVER, APPLE, GITHUB, DISCORD) */
|
|
834
801
|
enabled_oauth_providers: string[];
|
|
835
802
|
}
|
|
836
803
|
|
|
837
|
-
/**
|
|
838
|
-
* `signInAsGuestMember()` 의 동작을 제어하는 옵션.
|
|
839
|
-
*
|
|
840
|
-
* `allowOverrideExistingSession` 가 false(또는 미지정) 이고 활성 비-게스트 세션이
|
|
841
|
-
* 감지되면 `GuestSessionConflictError` 가 발생한다. true 로 명시해야만 silent
|
|
842
|
-
* overwrite 가 허용된다 (platform-issue 019e6c5d 가드).
|
|
843
|
-
*/
|
|
844
|
-
interface SignInAsGuestMemberOptions {
|
|
845
|
-
/**
|
|
846
|
-
* 이미 활성화된 비-게스트(OAuth/email/username) 세션이 있어도 게스트 토큰으로
|
|
847
|
-
* 덮어쓸지 여부. 기본값 false — 호출이 거부된다.
|
|
848
|
-
*/
|
|
849
|
-
allowOverrideExistingSession?: boolean;
|
|
850
|
-
}
|
|
851
804
|
declare class AuthAPI {
|
|
852
805
|
private http;
|
|
853
|
-
private guestMemberLoginPromise;
|
|
854
|
-
private cachedGuestMemberTokenKey;
|
|
855
806
|
private analytics;
|
|
856
807
|
constructor(http: HttpClient);
|
|
857
808
|
/**
|
|
@@ -867,9 +818,7 @@ declare class AuthAPI {
|
|
|
867
818
|
* @example
|
|
868
819
|
* ```typescript
|
|
869
820
|
* const settings = await client.auth.getAuthSettings()
|
|
870
|
-
* if (settings.
|
|
871
|
-
* await client.auth.signInAsGuestMember()
|
|
872
|
-
* } else if (settings.allow_id_password_login) {
|
|
821
|
+
* if (settings.allow_id_password_login) {
|
|
873
822
|
* // 로그인 폼 표시
|
|
874
823
|
* } else if (settings.enabled_oauth_providers.includes('GOOGLE')) {
|
|
875
824
|
* // 구글 소셜 로그인 버튼 표시
|
|
@@ -906,44 +855,6 @@ declare class AuthAPI {
|
|
|
906
855
|
* ```
|
|
907
856
|
*/
|
|
908
857
|
signInMember(data: MemberSignInRequest): Promise<MemberSignInResponse>;
|
|
909
|
-
/**
|
|
910
|
-
* 앱 멤버 게스트 가입
|
|
911
|
-
* API Key로 인증된 앱에 게스트 멤버로 가입합니다.
|
|
912
|
-
* 실시간 채팅 등에서 JWT 토큰 기반 인증이 필요할 때 사용합니다.
|
|
913
|
-
* 로컬 스토리지에 저장된 토큰이 있으면 기존 계정으로 재로그인을 시도합니다.
|
|
914
|
-
* 동시 호출 시 중복 요청 방지 (race condition 방지)
|
|
915
|
-
*
|
|
916
|
-
* **활성 세션 가드 (3.22.0+)**
|
|
917
|
-
* OAuth/email/username 로 이미 로그인된 세션이 살아있는 채 이 메서드가 호출되면
|
|
918
|
-
* 메인 토큰 슬롯이 silent 로 게스트 토큰으로 덮어써져 사용자가 둔갑되는 회귀가
|
|
919
|
-
* 있었다 (platform-issue 019e6c5d). 이를 막기 위해 활성 비-게스트 세션이 감지되면
|
|
920
|
-
* 기본적으로 `GuestSessionConflictError` 를 던진다. 명시적으로 교체하려면
|
|
921
|
-
* `{ allowOverrideExistingSession: true }` 를 전달하거나 먼저 `signOut()` 을 호출할 것.
|
|
922
|
-
*
|
|
923
|
-
* @example
|
|
924
|
-
* ```typescript
|
|
925
|
-
* const guest = await client.auth.signInAsGuestMember()
|
|
926
|
-
* await client.realtime.connect({ accessToken: guest.access_token })
|
|
927
|
-
*
|
|
928
|
-
* // 활성 세션을 명시적으로 교체 (예: "게스트로 계속" 버튼)
|
|
929
|
-
* await client.auth.signInAsGuestMember({ allowOverrideExistingSession: true })
|
|
930
|
-
* ```
|
|
931
|
-
*/
|
|
932
|
-
signInAsGuestMember(opts?: SignInAsGuestMemberOptions): Promise<GuestMemberSignInResponse>;
|
|
933
|
-
/**
|
|
934
|
-
* 현재 in-memory access token 이 "게스트 토큰이 아닌 다른 세션" 으로 판단되는지 확인.
|
|
935
|
-
*
|
|
936
|
-
* 판별 규칙:
|
|
937
|
-
* - access token 자체가 없으면 false (어떤 세션도 없음)
|
|
938
|
-
* - access token 이 만료됐으면 false (재로그인이 필요한 dead 상태)
|
|
939
|
-
* - persistence='none' 인 경우: 토큰은 메모리에만 존재. 우리는 그 토큰이
|
|
940
|
-
* 게스트인지 회원인지 분별할 메타가 메모리에 없다 → 보수적으로 true 처리.
|
|
941
|
-
* (회원이 가지고 있던 세션을 게스트가 덮어쓰는 게 더 큰 사고이므로
|
|
942
|
-
* false-positive < silent overwrite.)
|
|
943
|
-
* - persistence='localStorage'|'sessionStorage' 인 경우: 저장된 게스트 토큰과
|
|
944
|
-
* 현재 access token 이 일치하면 게스트 세션(false), 다르면 비-게스트(true).
|
|
945
|
-
*/
|
|
946
|
-
private hasActiveNonGuestSession;
|
|
947
858
|
/**
|
|
948
859
|
* 현재 로그인한 멤버 정보 조회
|
|
949
860
|
* custom_data를 포함한 멤버 정보를 반환합니다.
|
|
@@ -1015,15 +926,6 @@ declare class AuthAPI {
|
|
|
1015
926
|
* 로그아웃
|
|
1016
927
|
*/
|
|
1017
928
|
signOut(): Promise<void>;
|
|
1018
|
-
/**
|
|
1019
|
-
* 저장된 게스트 멤버 토큰 삭제
|
|
1020
|
-
*/
|
|
1021
|
-
clearGuestMemberTokens(): void;
|
|
1022
|
-
private executeGuestMemberLogin;
|
|
1023
|
-
private isTokenExpired;
|
|
1024
|
-
private getGuestMemberTokenKey;
|
|
1025
|
-
private getStoredGuestMemberTokens;
|
|
1026
|
-
private storeGuestMemberTokens;
|
|
1027
929
|
}
|
|
1028
930
|
|
|
1029
931
|
/**
|
|
@@ -4932,6 +4834,24 @@ interface SendToMembersPayload {
|
|
|
4932
4834
|
/** ISO8601 형식 예약 발송 시각. 미지정 시 즉시 발송. */
|
|
4933
4835
|
scheduledAt?: string;
|
|
4934
4836
|
}
|
|
4837
|
+
/**
|
|
4838
|
+
* `cb.push.sendToTopic` 페이로드. 백엔드 `dto.SendPushToTopicRequest` 에 매핑되며,
|
|
4839
|
+
* topic_name 은 메서드 인자로 받아 SDK 가 채운다. (members 발송과 달리 대상은 토픽 구독자 전체)
|
|
4840
|
+
*/
|
|
4841
|
+
interface SendToTopicPayload {
|
|
4842
|
+
title: string;
|
|
4843
|
+
body: string;
|
|
4844
|
+
imageUrl?: string;
|
|
4845
|
+
data?: Record<string, unknown>;
|
|
4846
|
+
/** 'ios' | 'android' | 'web' 중 선택. 빈 배열/미지정 시 전체 플랫폼 발송. */
|
|
4847
|
+
platforms?: Array<'ios' | 'android' | 'web'>;
|
|
4848
|
+
/** TTL(초). 기본 86400 (24h). */
|
|
4849
|
+
ttlSeconds?: number;
|
|
4850
|
+
priority?: 'normal' | 'high';
|
|
4851
|
+
clickAction?: string;
|
|
4852
|
+
/** ISO8601 형식 예약 발송 시각. 미지정 시 즉시 발송. */
|
|
4853
|
+
scheduledAt?: string;
|
|
4854
|
+
}
|
|
4935
4855
|
/**
|
|
4936
4856
|
* 발송 결과. 백엔드 `dto.SendResultResponse` 와 1:1 매핑.
|
|
4937
4857
|
*/
|
|
@@ -5106,6 +5026,33 @@ declare class PushAPI {
|
|
|
5106
5026
|
* ```
|
|
5107
5027
|
*/
|
|
5108
5028
|
sendToMembers(appId: string, memberIds: string[], payload: SendToMembersPayload): Promise<SendPushResult>;
|
|
5029
|
+
/**
|
|
5030
|
+
* 토픽 구독자 전체에게 푸시 알림을 발송한다 (서버 사이드 전용).
|
|
5031
|
+
*
|
|
5032
|
+
* 백엔드 라우트 `POST /v1/apps/:appID/push/send-to-topic` 는 콘솔 JWT, User Secret Key(`cb_sk_`),
|
|
5033
|
+
* 또는 service_role 토큰(`ctx.cbAdmin`)을 받는다. `sendToMembers` 와 동일하게 브라우저 SDK 의
|
|
5034
|
+
* Public Key(`cb_pk_`) **단독** 인스턴스에서는 호출이 차단되며, 위임 Bearer 토큰을 가진
|
|
5035
|
+
* 인스턴스(`ctx.cbAdmin`/`ctx.cb`)는 cb_pk_ 가 앱 식별용으로만 실리므로 허용된다.
|
|
5036
|
+
*
|
|
5037
|
+
* 정기 알림(일일 리마인더 등)을 ConnectBase Function 스케줄러에서 `ctx.cbAdmin` 으로 발송하는
|
|
5038
|
+
* 것이 대표 유스케이스다 — 시크릿 키를 콘솔에서 별도로 발급해 함수 secret 에 넣을 필요가 없다.
|
|
5039
|
+
*
|
|
5040
|
+
* @param appId 발송 대상 앱 ID.
|
|
5041
|
+
* @param topicName 발송 대상 토픽 이름 (예: 'daily-0900').
|
|
5042
|
+
* @param payload 푸시 내용/옵션.
|
|
5043
|
+
*
|
|
5044
|
+
* @example
|
|
5045
|
+
* ```ts
|
|
5046
|
+
* // ConnectBase Function (service_role=true) — 시크릿 키 없이 ctx.cbAdmin 으로 토픽 발송
|
|
5047
|
+
* const result = await ctx.cbAdmin.push.sendToTopic(ctx.appId, 'daily-0900', {
|
|
5048
|
+
* title: '오늘의 학습 리마인더',
|
|
5049
|
+
* body: '잊지 말고 학습을 이어가세요!',
|
|
5050
|
+
* data: { route: '/today' },
|
|
5051
|
+
* })
|
|
5052
|
+
* console.log(result.message_id, result.sent_count)
|
|
5053
|
+
* ```
|
|
5054
|
+
*/
|
|
5055
|
+
sendToTopic(appId: string, topicName: string, payload: SendToTopicPayload): Promise<SendPushResult>;
|
|
5109
5056
|
/**
|
|
5110
5057
|
* 브라우저 고유 ID 생성 (localStorage에 저장)
|
|
5111
5058
|
*/
|
|
@@ -9060,4 +9007,4 @@ declare class ConnectBase {
|
|
|
9060
9007
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
9061
9008
|
}
|
|
9062
9009
|
|
|
9063
|
-
export { AIAPI, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, 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 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 Channel, type ChannelMembership, type ChannelStats, 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 CreateRoomResult, 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, 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
|
|
9010
|
+
export { AIAPI, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, 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 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 Channel, type ChannelMembership, type ChannelStats, 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 CreateRoomResult, 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, 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 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 PollUntilOptions, 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 RoomStaleMessage, type RoomSummary, 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 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 StateChange, type StateChangeHandler, type StorageUploadOptions, 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 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 UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateDocumentRequest, 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 VideoCompleteUploadResponse, 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, detectInAppBrowser, escapeToExternalBrowser, isWebTransportSupported, toCreateRoomWire };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,30 +12,6 @@ declare class ApiError extends Error {
|
|
|
12
12
|
declare class AuthError extends Error {
|
|
13
13
|
constructor(message: string);
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* `cb.auth.signInAsGuestMember()` 호출 시 이미 활성화된 비-게스트 세션이 감지되면 발생.
|
|
17
|
-
*
|
|
18
|
-
* 같은 origin + 같은 publicKey 에서 OAuth/Email 로그인이 살아있는 상태로
|
|
19
|
-
* 우발적으로 게스트 로그인이 호출되면 메인 토큰 슬롯이 silent 로 덮어써지는
|
|
20
|
-
* 회귀(platform-issue 019e6c5d)를 차단하기 위한 가드.
|
|
21
|
-
*
|
|
22
|
-
* 명시적으로 활성 세션을 게스트로 교체하려면 `{ allowOverrideExistingSession: true }` 를
|
|
23
|
-
* 옵션으로 넘기거나, 먼저 `cb.auth.signOut()` 으로 정리할 것.
|
|
24
|
-
*
|
|
25
|
-
* ```ts
|
|
26
|
-
* try {
|
|
27
|
-
* await cb.auth.signInAsGuestMember()
|
|
28
|
-
* } catch (e) {
|
|
29
|
-
* if (e instanceof GuestSessionConflictError) {
|
|
30
|
-
* // 이미 로그인된 사용자가 있다는 뜻 — 게스트로 강제 전환할지 사용자에게 물어볼 것
|
|
31
|
-
* }
|
|
32
|
-
* }
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare class GuestSessionConflictError extends Error {
|
|
36
|
-
code: string;
|
|
37
|
-
constructor();
|
|
38
|
-
}
|
|
39
15
|
/**
|
|
40
16
|
* GameError 는 game-server 가 surface 한 `error` 메시지 (createRoom/joinRoom/sendAction
|
|
41
17
|
* 응답 또는 broadcastScriptError) 를 client 측에서 일관된 형태로 다루기 위한 예외 클래스.
|
|
@@ -759,12 +735,6 @@ declare class AnalyticsAPI {
|
|
|
759
735
|
private log;
|
|
760
736
|
}
|
|
761
737
|
|
|
762
|
-
/** 앱 멤버 게스트 가입 응답 */
|
|
763
|
-
interface GuestMemberSignInResponse {
|
|
764
|
-
member_id: string;
|
|
765
|
-
access_token: string;
|
|
766
|
-
refresh_token: string;
|
|
767
|
-
}
|
|
768
738
|
/** 앱 멤버 회원가입 요청 */
|
|
769
739
|
interface MemberSignUpRequest {
|
|
770
740
|
login_id: string;
|
|
@@ -801,9 +771,8 @@ interface MemberInfoResponse {
|
|
|
801
771
|
/** 멤버 역할 — RLS 규칙에서 `auth.role` 로 참조 (예: "admin", "moderator") */
|
|
802
772
|
role?: string;
|
|
803
773
|
/**
|
|
804
|
-
* 현재 세션이 게스트(
|
|
805
|
-
*
|
|
806
|
-
* 멤버는 true. 게스트 둔갑(silent overwrite) 감지/복구용 결정적 신호다.
|
|
774
|
+
* 현재 세션이 게스트(identity 가 전혀 없는 멤버 또는 레거시 GUEST identity)인지 여부.
|
|
775
|
+
* 신규 게스트 로그인은 제거됐으나, 기존 게스트 멤버 식별을 위해 유지된다.
|
|
807
776
|
*/
|
|
808
777
|
is_guest?: boolean;
|
|
809
778
|
/**
|
|
@@ -828,30 +797,12 @@ interface UpdateCustomDataResponse {
|
|
|
828
797
|
interface AuthSettingsResponse {
|
|
829
798
|
/** 아이디/비밀번호 로그인 허용 여부 */
|
|
830
799
|
allow_id_password_login: boolean;
|
|
831
|
-
/** 게스트 로그인 허용 여부 */
|
|
832
|
-
allow_guest_login: boolean;
|
|
833
800
|
/** 활성화된 OAuth 프로바이더 목록 (GOOGLE, KAKAO, NAVER, APPLE, GITHUB, DISCORD) */
|
|
834
801
|
enabled_oauth_providers: string[];
|
|
835
802
|
}
|
|
836
803
|
|
|
837
|
-
/**
|
|
838
|
-
* `signInAsGuestMember()` 의 동작을 제어하는 옵션.
|
|
839
|
-
*
|
|
840
|
-
* `allowOverrideExistingSession` 가 false(또는 미지정) 이고 활성 비-게스트 세션이
|
|
841
|
-
* 감지되면 `GuestSessionConflictError` 가 발생한다. true 로 명시해야만 silent
|
|
842
|
-
* overwrite 가 허용된다 (platform-issue 019e6c5d 가드).
|
|
843
|
-
*/
|
|
844
|
-
interface SignInAsGuestMemberOptions {
|
|
845
|
-
/**
|
|
846
|
-
* 이미 활성화된 비-게스트(OAuth/email/username) 세션이 있어도 게스트 토큰으로
|
|
847
|
-
* 덮어쓸지 여부. 기본값 false — 호출이 거부된다.
|
|
848
|
-
*/
|
|
849
|
-
allowOverrideExistingSession?: boolean;
|
|
850
|
-
}
|
|
851
804
|
declare class AuthAPI {
|
|
852
805
|
private http;
|
|
853
|
-
private guestMemberLoginPromise;
|
|
854
|
-
private cachedGuestMemberTokenKey;
|
|
855
806
|
private analytics;
|
|
856
807
|
constructor(http: HttpClient);
|
|
857
808
|
/**
|
|
@@ -867,9 +818,7 @@ declare class AuthAPI {
|
|
|
867
818
|
* @example
|
|
868
819
|
* ```typescript
|
|
869
820
|
* const settings = await client.auth.getAuthSettings()
|
|
870
|
-
* if (settings.
|
|
871
|
-
* await client.auth.signInAsGuestMember()
|
|
872
|
-
* } else if (settings.allow_id_password_login) {
|
|
821
|
+
* if (settings.allow_id_password_login) {
|
|
873
822
|
* // 로그인 폼 표시
|
|
874
823
|
* } else if (settings.enabled_oauth_providers.includes('GOOGLE')) {
|
|
875
824
|
* // 구글 소셜 로그인 버튼 표시
|
|
@@ -906,44 +855,6 @@ declare class AuthAPI {
|
|
|
906
855
|
* ```
|
|
907
856
|
*/
|
|
908
857
|
signInMember(data: MemberSignInRequest): Promise<MemberSignInResponse>;
|
|
909
|
-
/**
|
|
910
|
-
* 앱 멤버 게스트 가입
|
|
911
|
-
* API Key로 인증된 앱에 게스트 멤버로 가입합니다.
|
|
912
|
-
* 실시간 채팅 등에서 JWT 토큰 기반 인증이 필요할 때 사용합니다.
|
|
913
|
-
* 로컬 스토리지에 저장된 토큰이 있으면 기존 계정으로 재로그인을 시도합니다.
|
|
914
|
-
* 동시 호출 시 중복 요청 방지 (race condition 방지)
|
|
915
|
-
*
|
|
916
|
-
* **활성 세션 가드 (3.22.0+)**
|
|
917
|
-
* OAuth/email/username 로 이미 로그인된 세션이 살아있는 채 이 메서드가 호출되면
|
|
918
|
-
* 메인 토큰 슬롯이 silent 로 게스트 토큰으로 덮어써져 사용자가 둔갑되는 회귀가
|
|
919
|
-
* 있었다 (platform-issue 019e6c5d). 이를 막기 위해 활성 비-게스트 세션이 감지되면
|
|
920
|
-
* 기본적으로 `GuestSessionConflictError` 를 던진다. 명시적으로 교체하려면
|
|
921
|
-
* `{ allowOverrideExistingSession: true }` 를 전달하거나 먼저 `signOut()` 을 호출할 것.
|
|
922
|
-
*
|
|
923
|
-
* @example
|
|
924
|
-
* ```typescript
|
|
925
|
-
* const guest = await client.auth.signInAsGuestMember()
|
|
926
|
-
* await client.realtime.connect({ accessToken: guest.access_token })
|
|
927
|
-
*
|
|
928
|
-
* // 활성 세션을 명시적으로 교체 (예: "게스트로 계속" 버튼)
|
|
929
|
-
* await client.auth.signInAsGuestMember({ allowOverrideExistingSession: true })
|
|
930
|
-
* ```
|
|
931
|
-
*/
|
|
932
|
-
signInAsGuestMember(opts?: SignInAsGuestMemberOptions): Promise<GuestMemberSignInResponse>;
|
|
933
|
-
/**
|
|
934
|
-
* 현재 in-memory access token 이 "게스트 토큰이 아닌 다른 세션" 으로 판단되는지 확인.
|
|
935
|
-
*
|
|
936
|
-
* 판별 규칙:
|
|
937
|
-
* - access token 자체가 없으면 false (어떤 세션도 없음)
|
|
938
|
-
* - access token 이 만료됐으면 false (재로그인이 필요한 dead 상태)
|
|
939
|
-
* - persistence='none' 인 경우: 토큰은 메모리에만 존재. 우리는 그 토큰이
|
|
940
|
-
* 게스트인지 회원인지 분별할 메타가 메모리에 없다 → 보수적으로 true 처리.
|
|
941
|
-
* (회원이 가지고 있던 세션을 게스트가 덮어쓰는 게 더 큰 사고이므로
|
|
942
|
-
* false-positive < silent overwrite.)
|
|
943
|
-
* - persistence='localStorage'|'sessionStorage' 인 경우: 저장된 게스트 토큰과
|
|
944
|
-
* 현재 access token 이 일치하면 게스트 세션(false), 다르면 비-게스트(true).
|
|
945
|
-
*/
|
|
946
|
-
private hasActiveNonGuestSession;
|
|
947
858
|
/**
|
|
948
859
|
* 현재 로그인한 멤버 정보 조회
|
|
949
860
|
* custom_data를 포함한 멤버 정보를 반환합니다.
|
|
@@ -1015,15 +926,6 @@ declare class AuthAPI {
|
|
|
1015
926
|
* 로그아웃
|
|
1016
927
|
*/
|
|
1017
928
|
signOut(): Promise<void>;
|
|
1018
|
-
/**
|
|
1019
|
-
* 저장된 게스트 멤버 토큰 삭제
|
|
1020
|
-
*/
|
|
1021
|
-
clearGuestMemberTokens(): void;
|
|
1022
|
-
private executeGuestMemberLogin;
|
|
1023
|
-
private isTokenExpired;
|
|
1024
|
-
private getGuestMemberTokenKey;
|
|
1025
|
-
private getStoredGuestMemberTokens;
|
|
1026
|
-
private storeGuestMemberTokens;
|
|
1027
929
|
}
|
|
1028
930
|
|
|
1029
931
|
/**
|
|
@@ -4932,6 +4834,24 @@ interface SendToMembersPayload {
|
|
|
4932
4834
|
/** ISO8601 형식 예약 발송 시각. 미지정 시 즉시 발송. */
|
|
4933
4835
|
scheduledAt?: string;
|
|
4934
4836
|
}
|
|
4837
|
+
/**
|
|
4838
|
+
* `cb.push.sendToTopic` 페이로드. 백엔드 `dto.SendPushToTopicRequest` 에 매핑되며,
|
|
4839
|
+
* topic_name 은 메서드 인자로 받아 SDK 가 채운다. (members 발송과 달리 대상은 토픽 구독자 전체)
|
|
4840
|
+
*/
|
|
4841
|
+
interface SendToTopicPayload {
|
|
4842
|
+
title: string;
|
|
4843
|
+
body: string;
|
|
4844
|
+
imageUrl?: string;
|
|
4845
|
+
data?: Record<string, unknown>;
|
|
4846
|
+
/** 'ios' | 'android' | 'web' 중 선택. 빈 배열/미지정 시 전체 플랫폼 발송. */
|
|
4847
|
+
platforms?: Array<'ios' | 'android' | 'web'>;
|
|
4848
|
+
/** TTL(초). 기본 86400 (24h). */
|
|
4849
|
+
ttlSeconds?: number;
|
|
4850
|
+
priority?: 'normal' | 'high';
|
|
4851
|
+
clickAction?: string;
|
|
4852
|
+
/** ISO8601 형식 예약 발송 시각. 미지정 시 즉시 발송. */
|
|
4853
|
+
scheduledAt?: string;
|
|
4854
|
+
}
|
|
4935
4855
|
/**
|
|
4936
4856
|
* 발송 결과. 백엔드 `dto.SendResultResponse` 와 1:1 매핑.
|
|
4937
4857
|
*/
|
|
@@ -5106,6 +5026,33 @@ declare class PushAPI {
|
|
|
5106
5026
|
* ```
|
|
5107
5027
|
*/
|
|
5108
5028
|
sendToMembers(appId: string, memberIds: string[], payload: SendToMembersPayload): Promise<SendPushResult>;
|
|
5029
|
+
/**
|
|
5030
|
+
* 토픽 구독자 전체에게 푸시 알림을 발송한다 (서버 사이드 전용).
|
|
5031
|
+
*
|
|
5032
|
+
* 백엔드 라우트 `POST /v1/apps/:appID/push/send-to-topic` 는 콘솔 JWT, User Secret Key(`cb_sk_`),
|
|
5033
|
+
* 또는 service_role 토큰(`ctx.cbAdmin`)을 받는다. `sendToMembers` 와 동일하게 브라우저 SDK 의
|
|
5034
|
+
* Public Key(`cb_pk_`) **단독** 인스턴스에서는 호출이 차단되며, 위임 Bearer 토큰을 가진
|
|
5035
|
+
* 인스턴스(`ctx.cbAdmin`/`ctx.cb`)는 cb_pk_ 가 앱 식별용으로만 실리므로 허용된다.
|
|
5036
|
+
*
|
|
5037
|
+
* 정기 알림(일일 리마인더 등)을 ConnectBase Function 스케줄러에서 `ctx.cbAdmin` 으로 발송하는
|
|
5038
|
+
* 것이 대표 유스케이스다 — 시크릿 키를 콘솔에서 별도로 발급해 함수 secret 에 넣을 필요가 없다.
|
|
5039
|
+
*
|
|
5040
|
+
* @param appId 발송 대상 앱 ID.
|
|
5041
|
+
* @param topicName 발송 대상 토픽 이름 (예: 'daily-0900').
|
|
5042
|
+
* @param payload 푸시 내용/옵션.
|
|
5043
|
+
*
|
|
5044
|
+
* @example
|
|
5045
|
+
* ```ts
|
|
5046
|
+
* // ConnectBase Function (service_role=true) — 시크릿 키 없이 ctx.cbAdmin 으로 토픽 발송
|
|
5047
|
+
* const result = await ctx.cbAdmin.push.sendToTopic(ctx.appId, 'daily-0900', {
|
|
5048
|
+
* title: '오늘의 학습 리마인더',
|
|
5049
|
+
* body: '잊지 말고 학습을 이어가세요!',
|
|
5050
|
+
* data: { route: '/today' },
|
|
5051
|
+
* })
|
|
5052
|
+
* console.log(result.message_id, result.sent_count)
|
|
5053
|
+
* ```
|
|
5054
|
+
*/
|
|
5055
|
+
sendToTopic(appId: string, topicName: string, payload: SendToTopicPayload): Promise<SendPushResult>;
|
|
5109
5056
|
/**
|
|
5110
5057
|
* 브라우저 고유 ID 생성 (localStorage에 저장)
|
|
5111
5058
|
*/
|
|
@@ -9060,4 +9007,4 @@ declare class ConnectBase {
|
|
|
9060
9007
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
9061
9008
|
}
|
|
9062
9009
|
|
|
9063
|
-
export { AIAPI, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, 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 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 Channel, type ChannelMembership, type ChannelStats, 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 CreateRoomResult, 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, 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
|
|
9010
|
+
export { AIAPI, type AIChatRequest, type AIChatResponse, type AIChatStreamCallbacks, type AIChatStreamOptions, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, AUTH_MEMBER_ID_TOKEN, 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 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 Channel, type ChannelMembership, type ChannelStats, 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 CreateRoomResult, 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, 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 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 PollUntilOptions, 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 RoomStaleMessage, type RoomSummary, 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 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 StateChange, type StateChangeHandler, type StorageUploadOptions, 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 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 UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateDocumentRequest, 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 VideoCompleteUploadResponse, 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, detectInAppBrowser, escapeToExternalBrowser, isWebTransportSupported, toCreateRoomWire };
|