connectbase-client 0.16.0 → 1.2.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 +205 -0
- package/LICENSE +21 -0
- package/README.md +27 -17
- package/dist/cli.js +14 -14
- package/dist/connect-base.umd.js +3 -3
- package/dist/index.d.mts +170 -46
- package/dist/index.d.ts +170 -46
- package/dist/index.js +200 -94
- package/dist/index.mjs +200 -94
- package/package.json +11 -3
package/dist/index.d.ts
CHANGED
|
@@ -29,10 +29,14 @@ interface HttpClientConfig {
|
|
|
29
29
|
accessToken?: string;
|
|
30
30
|
refreshToken?: string;
|
|
31
31
|
/**
|
|
32
|
-
* 토큰 저장 방식.
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* 토큰 저장 방식. **기본값은 'none' (메모리 저장)**.
|
|
33
|
+
* XSS 취약점이 하나라도 있을 경우 전 세션이 탈취되므로, 영구 저장 옵션은
|
|
34
|
+
* 위험을 이해하고 명시적으로 선택한 경우에만 사용한다.
|
|
35
|
+
*
|
|
36
|
+
* - 'none' (권장·기본값): 메모리에만 저장. 새로고침 시 재로그인 필요
|
|
37
|
+
* → 서버가 refresh token 을 HttpOnly;Secure;SameSite 쿠키로 발급하는 구성에서만 사용
|
|
38
|
+
* - 'sessionStorage': 탭 종료 시 삭제. JS 접근 가능 → XSS 로 탈취 가능
|
|
39
|
+
* - 'localStorage': 브라우저 종료 후에도 유지. JS 접근 가능 → XSS 로 영구 탈취 가능
|
|
36
40
|
*/
|
|
37
41
|
persistence?: TokenPersistence;
|
|
38
42
|
onTokenRefresh?: (tokens: {
|
|
@@ -52,11 +56,17 @@ declare class HttpClient {
|
|
|
52
56
|
private refreshPromise;
|
|
53
57
|
private storageKey;
|
|
54
58
|
constructor(config: HttpClientConfig);
|
|
59
|
+
private warnIfUnsafePersistence;
|
|
55
60
|
updateConfig(config: Partial<HttpClientConfig>): void;
|
|
56
61
|
setTokens(accessToken: string, refreshToken: string): void;
|
|
57
62
|
clearTokens(): void;
|
|
58
63
|
private get persistence();
|
|
59
64
|
private getStorage;
|
|
65
|
+
/**
|
|
66
|
+
* AuthAPI 등 내부 사용자가 "현재 persistence 설정된 스토리지"를 확인할 수 있도록 노출.
|
|
67
|
+
* persistence='none' 이면 null. XSS 완화 기본값을 공유하기 위함.
|
|
68
|
+
*/
|
|
69
|
+
getPersistenceStorage(): Storage | null;
|
|
60
70
|
private buildStorageKey;
|
|
61
71
|
private persistTokens;
|
|
62
72
|
private restoreTokens;
|
|
@@ -85,6 +95,10 @@ declare class HttpClient {
|
|
|
85
95
|
* Access Token 반환
|
|
86
96
|
*/
|
|
87
97
|
getAccessToken(): string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* JWT(Access Token) 가 설정되어 있는지 확인
|
|
100
|
+
*/
|
|
101
|
+
hasJWT(): boolean;
|
|
88
102
|
/**
|
|
89
103
|
* Base URL 반환
|
|
90
104
|
*/
|
|
@@ -141,7 +155,7 @@ interface MemberInfoResponse {
|
|
|
141
155
|
member_id: string;
|
|
142
156
|
nickname: string;
|
|
143
157
|
is_active: boolean;
|
|
144
|
-
custom_data: Record<string,
|
|
158
|
+
custom_data: Record<string, unknown>;
|
|
145
159
|
/** 멤버 이메일 (EMAIL identity 에서 추출, 없으면 빈 문자열) */
|
|
146
160
|
email?: string;
|
|
147
161
|
/** 멤버 역할 — RLS 규칙에서 `auth.role` 로 참조 (예: "admin", "moderator") */
|
|
@@ -149,12 +163,12 @@ interface MemberInfoResponse {
|
|
|
149
163
|
}
|
|
150
164
|
/** 앱 멤버 custom_data 수정 요청 */
|
|
151
165
|
interface UpdateCustomDataRequest {
|
|
152
|
-
custom_data: Record<string,
|
|
166
|
+
custom_data: Record<string, unknown>;
|
|
153
167
|
}
|
|
154
168
|
/** 앱 멤버 custom_data 수정 응답 */
|
|
155
169
|
interface UpdateCustomDataResponse {
|
|
156
170
|
member_id: string;
|
|
157
|
-
custom_data: Record<string,
|
|
171
|
+
custom_data: Record<string, unknown>;
|
|
158
172
|
}
|
|
159
173
|
/** 앱 인증 설정 응답 */
|
|
160
174
|
interface AuthSettingsResponse {
|
|
@@ -509,8 +523,10 @@ interface UpdateDataRequest {
|
|
|
509
523
|
data: Record<string, unknown>;
|
|
510
524
|
}
|
|
511
525
|
interface FetchDataResponse {
|
|
512
|
-
|
|
513
|
-
|
|
526
|
+
/** 조회된 문서 배열 (서버는 `datas` 키로 반환합니다) */
|
|
527
|
+
datas: DataItem[];
|
|
528
|
+
/** 총 매칭 문서 수 (서버는 `total_size` 키로 반환합니다) */
|
|
529
|
+
total_size: number;
|
|
514
530
|
}
|
|
515
531
|
interface QueryOptions {
|
|
516
532
|
limit?: number;
|
|
@@ -978,6 +994,17 @@ interface ExportDataResponse {
|
|
|
978
994
|
data?: Record<string, unknown>;
|
|
979
995
|
schema?: Record<string, unknown>;
|
|
980
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* 데이터 가져오기 요청
|
|
999
|
+
* @example
|
|
1000
|
+
* {
|
|
1001
|
+
* data: {
|
|
1002
|
+
* users: { rows: [{ name: 'Alice', age: 30 }] },
|
|
1003
|
+
* orders: { rows: [{ user: 'Alice', amount: 1000 }] }
|
|
1004
|
+
* },
|
|
1005
|
+
* mode: 'merge'
|
|
1006
|
+
* }
|
|
1007
|
+
*/
|
|
981
1008
|
interface ImportDataRequest {
|
|
982
1009
|
/** 가져올 데이터: { "테이블이름": { "rows": [{...}, ...] }, ... } */
|
|
983
1010
|
data: Record<string, {
|
|
@@ -1717,10 +1744,14 @@ declare class StorageAPI {
|
|
|
1717
1744
|
deleteFile(storageId: string, fileId: string): Promise<void>;
|
|
1718
1745
|
/**
|
|
1719
1746
|
* 파일/폴더 이동
|
|
1747
|
+
*
|
|
1748
|
+
* Public Key 인증만으로는 이 엔드포인트가 노출되지 않습니다. JWT(콘솔 토큰)가 필요합니다.
|
|
1720
1749
|
*/
|
|
1721
1750
|
moveFile(storageId: string, fileId: string, data: MoveFileRequest): Promise<void>;
|
|
1722
1751
|
/**
|
|
1723
1752
|
* 파일/폴더 이름 변경
|
|
1753
|
+
*
|
|
1754
|
+
* Public Key 인증만으로는 이 엔드포인트가 노출되지 않습니다. JWT(콘솔 토큰)가 필요합니다.
|
|
1724
1755
|
*/
|
|
1725
1756
|
renameFile(storageId: string, fileId: string, data: RenameFileRequest): Promise<RenameFileResponse>;
|
|
1726
1757
|
/**
|
|
@@ -3036,6 +3067,29 @@ declare class OAuthAPI {
|
|
|
3036
3067
|
state?: string;
|
|
3037
3068
|
error?: string;
|
|
3038
3069
|
} | null;
|
|
3070
|
+
/**
|
|
3071
|
+
* 콜백 URL 에서 1회용 `code` 를 토큰으로 교환합니다 (`OAUTH_CODE_ONLY` 서버 모드용).
|
|
3072
|
+
*
|
|
3073
|
+
* 서버가 `OAUTH_CODE_ONLY=true` 모드면 리다이렉트 URL 에 토큰 대신 `code` 만 포함됩니다.
|
|
3074
|
+
* 이 메서드는 code 를 `POST /v1/auth/oauth/exchange` 로 교환하고 토큰을 자동 저장합니다.
|
|
3075
|
+
*
|
|
3076
|
+
* 권장 호출 순서:
|
|
3077
|
+
* 1) `cb.oauth.exchangeCodeFromCallback()` 먼저 — code-only 모드면 성공
|
|
3078
|
+
* 2) null 반환 시 `cb.oauth.getCallbackResult()` 폴백 (legacy 토큰-in-URL 모드)
|
|
3079
|
+
*
|
|
3080
|
+
* @example
|
|
3081
|
+
* ```typescript
|
|
3082
|
+
* const result = await cb.oauth.exchangeCodeFromCallback()
|
|
3083
|
+
* ?? cb.oauth.getCallbackResult()
|
|
3084
|
+
* ```
|
|
3085
|
+
*/
|
|
3086
|
+
exchangeCodeFromCallback(): Promise<{
|
|
3087
|
+
access_token: string;
|
|
3088
|
+
refresh_token: string;
|
|
3089
|
+
member_id: string;
|
|
3090
|
+
is_new_member: boolean;
|
|
3091
|
+
state?: string;
|
|
3092
|
+
} | null>;
|
|
3039
3093
|
}
|
|
3040
3094
|
|
|
3041
3095
|
type PaymentProvider = 'toss' | 'stripe';
|
|
@@ -3062,6 +3116,25 @@ interface PreparePaymentResponse {
|
|
|
3062
3116
|
stripe_client_secret?: string;
|
|
3063
3117
|
stripe_publishable_key?: string;
|
|
3064
3118
|
}
|
|
3119
|
+
interface CreateCheckoutSessionRequest {
|
|
3120
|
+
amount: number;
|
|
3121
|
+
currency: string;
|
|
3122
|
+
product_name: string;
|
|
3123
|
+
success_url: string;
|
|
3124
|
+
cancel_url: string;
|
|
3125
|
+
order_id?: string;
|
|
3126
|
+
customer_email?: string;
|
|
3127
|
+
customer_name?: string;
|
|
3128
|
+
metadata?: Record<string, unknown>;
|
|
3129
|
+
}
|
|
3130
|
+
interface CreateCheckoutSessionResponse {
|
|
3131
|
+
payment_id: string;
|
|
3132
|
+
order_id: string;
|
|
3133
|
+
amount: number;
|
|
3134
|
+
currency: string;
|
|
3135
|
+
session_id: string;
|
|
3136
|
+
session_url: string;
|
|
3137
|
+
}
|
|
3065
3138
|
interface ConfirmPaymentRequest {
|
|
3066
3139
|
payment_key: string;
|
|
3067
3140
|
order_id: string;
|
|
@@ -3129,35 +3202,61 @@ declare class PaymentAPI {
|
|
|
3129
3202
|
*
|
|
3130
3203
|
* @example
|
|
3131
3204
|
* ```typescript
|
|
3132
|
-
* const
|
|
3205
|
+
* const result = await cb.payment.prepare({
|
|
3133
3206
|
* amount: 10000,
|
|
3134
|
-
* order_name: '
|
|
3207
|
+
* order_name: '프리미엄 1개월',
|
|
3135
3208
|
* customer_email: 'test@example.com',
|
|
3136
3209
|
* customer_name: '홍길동'
|
|
3137
3210
|
* })
|
|
3138
3211
|
*
|
|
3139
|
-
* //
|
|
3140
|
-
*
|
|
3141
|
-
*
|
|
3142
|
-
*
|
|
3143
|
-
*
|
|
3144
|
-
*
|
|
3145
|
-
*
|
|
3146
|
-
*
|
|
3147
|
-
*
|
|
3148
|
-
*
|
|
3212
|
+
* // Toss V2 결제 플로우
|
|
3213
|
+
* if (result.payment_provider === 'toss') {
|
|
3214
|
+
* const tossPayments = TossPayments(result.toss_client_key)
|
|
3215
|
+
* const payment = tossPayments.payment({ customerKey: result.customer_key })
|
|
3216
|
+
* await payment.requestPayment({
|
|
3217
|
+
* method: 'CARD',
|
|
3218
|
+
* amount: { currency: 'KRW', value: result.amount },
|
|
3219
|
+
* orderId: result.order_id,
|
|
3220
|
+
* orderName: result.order_name,
|
|
3221
|
+
* successUrl: result.success_url,
|
|
3222
|
+
* failUrl: result.fail_url,
|
|
3223
|
+
* })
|
|
3224
|
+
* }
|
|
3149
3225
|
*
|
|
3150
|
-
* // Stripe 결제
|
|
3151
|
-
*
|
|
3152
|
-
*
|
|
3153
|
-
*
|
|
3154
|
-
*
|
|
3155
|
-
*
|
|
3156
|
-
*
|
|
3157
|
-
* // }
|
|
3226
|
+
* // Stripe 결제 플로우
|
|
3227
|
+
* if (result.payment_provider === 'stripe') {
|
|
3228
|
+
* const stripe = await loadStripe(result.stripe_publishable_key)
|
|
3229
|
+
* const elements = stripe.elements({ clientSecret: result.stripe_client_secret })
|
|
3230
|
+
* // Mount PaymentElement, then:
|
|
3231
|
+
* // stripe.confirmPayment({ elements, redirect: 'if_required' })
|
|
3232
|
+
* }
|
|
3158
3233
|
* ```
|
|
3159
3234
|
*/
|
|
3160
3235
|
prepare(data: PreparePaymentRequest): Promise<PreparePaymentResponse>;
|
|
3236
|
+
/**
|
|
3237
|
+
* Stripe-hosted 결제 페이지 세션 생성 (client_secret 미노출 플로우).
|
|
3238
|
+
*
|
|
3239
|
+
* Elements 플로우(`prepare`) 대신 Stripe-hosted Checkout 페이지로 리다이렉트하고 싶을 때 사용.
|
|
3240
|
+
* 응답에 `session_url` 이 포함되며, 브라우저를 해당 URL 로 이동시키면 Stripe 가 카드 입력·결제를 처리한 뒤
|
|
3241
|
+
* `success_url` / `cancel_url` 로 복귀한다. `client_secret` 은 서버·클라이언트 어디에도 노출되지 않는다.
|
|
3242
|
+
*
|
|
3243
|
+
* @param data - 결제 세션 정보 (금액, 통화, 상품명, success/cancel URL 등)
|
|
3244
|
+
* @returns session_id, session_url (redirect 대상)
|
|
3245
|
+
*
|
|
3246
|
+
* @example
|
|
3247
|
+
* ```typescript
|
|
3248
|
+
* const sess = await client.payment.createCheckoutSession({
|
|
3249
|
+
* amount: 1000,
|
|
3250
|
+
* currency: 'USD',
|
|
3251
|
+
* product_name: 'Premium Subscription',
|
|
3252
|
+
* success_url: 'https://app.example.com/success?session_id={CHECKOUT_SESSION_ID}',
|
|
3253
|
+
* cancel_url: 'https://app.example.com/cancel',
|
|
3254
|
+
* customer_email: 'user@example.com',
|
|
3255
|
+
* })
|
|
3256
|
+
* window.location.href = sess.session_url
|
|
3257
|
+
* ```
|
|
3258
|
+
*/
|
|
3259
|
+
createCheckoutSession(data: CreateCheckoutSessionRequest): Promise<CreateCheckoutSessionResponse>;
|
|
3161
3260
|
/**
|
|
3162
3261
|
* 결제 승인
|
|
3163
3262
|
* 토스에서 결제 완료 후 콜백으로 받은 정보로 결제를 최종 승인합니다.
|
|
@@ -3788,8 +3887,8 @@ interface WebPushSubscription {
|
|
|
3788
3887
|
* device_name: 'Galaxy S24',
|
|
3789
3888
|
* })
|
|
3790
3889
|
*
|
|
3791
|
-
* // 토픽 구독
|
|
3792
|
-
* await cb.push.subscribeTopic('announcements')
|
|
3890
|
+
* // 토픽 구독 (device_token 필수)
|
|
3891
|
+
* await cb.push.subscribeTopic(device.device_token, 'announcements')
|
|
3793
3892
|
*
|
|
3794
3893
|
* // Web Push 등록 (브라우저)
|
|
3795
3894
|
* const vapidKey = await cb.push.getVAPIDPublicKey()
|
|
@@ -5017,12 +5116,16 @@ declare class GameAPI {
|
|
|
5017
5116
|
getRoom(roomId: string): Promise<GameRoomInfo>;
|
|
5018
5117
|
/**
|
|
5019
5118
|
* 룸 생성 (HTTP, gRPC 대안)
|
|
5119
|
+
*
|
|
5120
|
+
* @deprecated 현재 SDK public 경로로 노출되지 않습니다. 콘솔(admin) 에서 진행하거나 백엔드 public 경로 오픈을 요청하세요.
|
|
5020
5121
|
*/
|
|
5021
|
-
createRoom(
|
|
5122
|
+
createRoom(_appId: string, _config?: GameRoomConfig): Promise<GameRoomInfo>;
|
|
5022
5123
|
/**
|
|
5023
5124
|
* 룸 삭제 (HTTP)
|
|
5125
|
+
*
|
|
5126
|
+
* @deprecated 현재 SDK public 경로로 노출되지 않습니다. 콘솔(admin) 에서 진행하거나 백엔드 public 경로 오픈을 요청하세요.
|
|
5024
5127
|
*/
|
|
5025
|
-
deleteRoom(
|
|
5128
|
+
deleteRoom(_roomId: string): Promise<void>;
|
|
5026
5129
|
/**
|
|
5027
5130
|
* 매치메이킹 큐에 참가
|
|
5028
5131
|
*/
|
|
@@ -5101,7 +5204,10 @@ declare class GameAPI {
|
|
|
5101
5204
|
*/
|
|
5102
5205
|
getPlayerInvites(playerId: string): Promise<LobbyInvite[]>;
|
|
5103
5206
|
createParty(playerId: string, maxSize?: number): Promise<PartyInfo>;
|
|
5104
|
-
|
|
5207
|
+
/**
|
|
5208
|
+
* @deprecated 백엔드에서 직접 join 엔드포인트 미제공 — `inviteToParty` → `acceptInvite` 플로우 사용
|
|
5209
|
+
*/
|
|
5210
|
+
joinParty(_partyId: string, _playerId: string): Promise<PartyInfo>;
|
|
5105
5211
|
leaveParty(partyId: string, playerId: string): Promise<void>;
|
|
5106
5212
|
kickFromParty(partyId: string, playerId: string): Promise<void>;
|
|
5107
5213
|
inviteToParty(partyId: string, inviterId: string, inviteeId: string): Promise<PartyInvite>;
|
|
@@ -5109,9 +5215,9 @@ declare class GameAPI {
|
|
|
5109
5215
|
joinSpectator(roomId: string, playerId: string): Promise<SpectatorInfo>;
|
|
5110
5216
|
leaveSpectator(roomId: string, spectatorId: string): Promise<void>;
|
|
5111
5217
|
getSpectators(roomId: string): Promise<SpectatorInfo[]>;
|
|
5112
|
-
getLeaderboard(top?: number): Promise<LeaderboardEntry[]>;
|
|
5113
|
-
getPlayerStats(playerId: string): Promise<PlayerStats>;
|
|
5114
|
-
getPlayerRank(playerId: string): Promise<LeaderboardEntry>;
|
|
5218
|
+
getLeaderboard(gameType: string, top?: number, season?: string): Promise<LeaderboardEntry[]>;
|
|
5219
|
+
getPlayerStats(playerId: string, gameType: string, season?: string): Promise<PlayerStats>;
|
|
5220
|
+
getPlayerRank(playerId: string, gameType: string, season?: string): Promise<LeaderboardEntry>;
|
|
5115
5221
|
joinVoiceChannel(roomId: string, playerId: string): Promise<VoiceChannel>;
|
|
5116
5222
|
leaveVoiceChannel(roomId: string, playerId: string): Promise<void>;
|
|
5117
5223
|
setMute(playerId: string, muted: boolean): Promise<void>;
|
|
@@ -5122,12 +5228,20 @@ declare class GameAPI {
|
|
|
5122
5228
|
private getHeaders;
|
|
5123
5229
|
}
|
|
5124
5230
|
|
|
5125
|
-
interface
|
|
5231
|
+
interface AdsenseConnectionInfo {
|
|
5126
5232
|
is_connected: boolean;
|
|
5127
5233
|
email?: string;
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5234
|
+
account_id?: string;
|
|
5235
|
+
}
|
|
5236
|
+
interface AdmobConnectionInfo {
|
|
5237
|
+
is_connected: boolean;
|
|
5238
|
+
email?: string;
|
|
5239
|
+
account_id?: string;
|
|
5240
|
+
publisher_id?: string;
|
|
5241
|
+
}
|
|
5242
|
+
interface GoogleConnectionStatus {
|
|
5243
|
+
adsense: AdsenseConnectionInfo;
|
|
5244
|
+
admob: AdmobConnectionInfo;
|
|
5131
5245
|
}
|
|
5132
5246
|
interface AdReportSummary {
|
|
5133
5247
|
total_earnings: number;
|
|
@@ -5179,15 +5293,18 @@ declare class AdsAPI {
|
|
|
5179
5293
|
*/
|
|
5180
5294
|
private getPublicPrefix;
|
|
5181
5295
|
/**
|
|
5182
|
-
* AdSense 연결 상태 확인
|
|
5296
|
+
* AdSense / AdMob 연결 상태 확인 (중첩 구조)
|
|
5183
5297
|
*
|
|
5184
|
-
* @returns
|
|
5298
|
+
* @returns `{ adsense, admob }` 각각 연결 상태·이메일·계정 ID
|
|
5185
5299
|
*
|
|
5186
5300
|
* @example
|
|
5187
5301
|
* ```typescript
|
|
5188
5302
|
* const status = await cb.ads.getConnectionStatus()
|
|
5189
|
-
* if (status.is_connected) {
|
|
5190
|
-
* console.log('연결됨:', status.email)
|
|
5303
|
+
* if (status.adsense.is_connected) {
|
|
5304
|
+
* console.log('AdSense 연결됨:', status.adsense.email, status.adsense.account_id)
|
|
5305
|
+
* }
|
|
5306
|
+
* if (status.admob.is_connected) {
|
|
5307
|
+
* console.log('AdMob 연결됨:', status.admob.account_id, status.admob.publisher_id)
|
|
5191
5308
|
* }
|
|
5192
5309
|
* ```
|
|
5193
5310
|
*/
|
|
@@ -5742,9 +5859,16 @@ interface ListDocumentsResponse {
|
|
|
5742
5859
|
documents: DocumentResponse[];
|
|
5743
5860
|
total_count: number;
|
|
5744
5861
|
}
|
|
5862
|
+
/**
|
|
5863
|
+
* 검색 요청
|
|
5864
|
+
* @example { query: "환불 방법", top_k: 5, agentic: true }
|
|
5865
|
+
*/
|
|
5745
5866
|
interface KnowledgeSearchRequest {
|
|
5867
|
+
/** 검색 쿼리 (필수) */
|
|
5746
5868
|
query: string;
|
|
5869
|
+
/** 반환할 결과 수 (기본: KB 설정값) */
|
|
5747
5870
|
top_k?: number;
|
|
5871
|
+
/** Agentic Search 활성화 — AI 가 쿼리를 자동 생성하여 다중 검색 수행 */
|
|
5748
5872
|
agentic?: boolean;
|
|
5749
5873
|
}
|
|
5750
5874
|
interface KnowledgeSearchResult {
|
|
@@ -6601,4 +6725,4 @@ declare class ConnectBase {
|
|
|
6601
6725
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
6602
6726
|
}
|
|
6603
6727
|
|
|
6604
|
-
export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsentOptions, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
|
|
6728
|
+
export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdMobDailyReport, type AdMobReportResponse, type AdMobReportSummary, type AdReportResponse, type AdReportSummary, type AdmobConnectionInfo, AdsAPI, type AdsenseConnectionInfo, type AggregateResult, type AggregateStage, type AnalyticsConfig, type AnalyticsEvent, ApiError, type ApiErrorDetail, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsentOptions, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateCheckoutSessionRequest, type CreateCheckoutSessionResponse, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, SessionManager, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableAccessLevel, type TableColumnDef, type TableIndex, type TableRelation, type TableSchema, type TableSchemaDefinition, type TokenPersistence, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type ValidationSchema, type ValidationSchemaField, type ValidationStateTransitions, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
|