connectbase-client 5.0.0 → 5.1.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 +39 -0
- package/dist/connect-base.umd.js +5 -5
- package/dist/index.d.mts +119 -1
- package/dist/index.d.ts +119 -1
- package/dist/index.js +48 -0
- package/dist/index.mjs +47 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1253,6 +1253,118 @@ declare class AnalyticsAPI {
|
|
|
1253
1253
|
private log;
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
+
/** 멤버의 로그인 수단. 백엔드 `appmemberidentity.ProviderType`. */
|
|
1257
|
+
type AppMemberProviderType = "EMAIL" | "USERNAME" | "GOOGLE" | "APPLE" | "KAKAO" | "NAVER" | "GITHUB" | "DISCORD" | "FACEBOOK" | "GUEST";
|
|
1258
|
+
/** 멤버 목록 항목의 identity. 백엔드 `FetchAppMemberIdentityItem` 매핑. */
|
|
1259
|
+
interface AppMemberIdentitySummary {
|
|
1260
|
+
id: string;
|
|
1261
|
+
type: AppMemberProviderType;
|
|
1262
|
+
create_time: string;
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* `cb.appMembers.list` 항목. 백엔드 `FetchAppMemberItem` 매핑.
|
|
1266
|
+
*
|
|
1267
|
+
* `email` 은 `app_members.email` 컬럼이 우선이고, NULL 이면 EMAIL identity 의 provider_uid 로
|
|
1268
|
+
* fallback 한다(backfill 이전 legacy 멤버). 이메일이 정말 없으면 빈 문자열이다.
|
|
1269
|
+
*/
|
|
1270
|
+
interface AppMemberListItem {
|
|
1271
|
+
id: string;
|
|
1272
|
+
/** 개인정보 — 앱 소유자 권한으로만 내려온다. 멤버 토큰에는 노출되지 않는다. */
|
|
1273
|
+
email: string;
|
|
1274
|
+
nickname: string;
|
|
1275
|
+
signup_time: string;
|
|
1276
|
+
identities: AppMemberIdentitySummary[];
|
|
1277
|
+
is_suspended: boolean;
|
|
1278
|
+
suspended_until?: string;
|
|
1279
|
+
}
|
|
1280
|
+
/** `cb.appMembers.list` 반환값. 백엔드 `FetchAppMemberResponse` 매핑. */
|
|
1281
|
+
interface AppMemberList {
|
|
1282
|
+
total_count: number;
|
|
1283
|
+
app_members: AppMemberListItem[];
|
|
1284
|
+
}
|
|
1285
|
+
/** `cb.appMembers.list` 조회 옵션. */
|
|
1286
|
+
interface ListAppMembersOptions {
|
|
1287
|
+
/** 1-based 페이지 번호 (기본 1). */
|
|
1288
|
+
page?: number;
|
|
1289
|
+
/** 페이지 크기 (기본 100). 100 을 넘기면 서버가 100 으로 절삭한다. */
|
|
1290
|
+
pageSize?: number;
|
|
1291
|
+
/**
|
|
1292
|
+
* 닉네임·이메일·로그인 identity(email/username)를 함께 부분 일치(대소문자 무시)한다.
|
|
1293
|
+
* 문의로 들어온 이메일이 어느 회원인지 대조하는 용도. `total_count` 도 이 필터를 반영한다.
|
|
1294
|
+
*/
|
|
1295
|
+
search?: string;
|
|
1296
|
+
}
|
|
1297
|
+
/** 멤버 상세의 identity. 백엔드 `FetchAppMemberIdentityDetail` 매핑. */
|
|
1298
|
+
interface AppMemberIdentityDetail {
|
|
1299
|
+
id: string;
|
|
1300
|
+
type: AppMemberProviderType;
|
|
1301
|
+
provider_uid: string;
|
|
1302
|
+
create_time: string;
|
|
1303
|
+
update_time: string;
|
|
1304
|
+
}
|
|
1305
|
+
/** `cb.appMembers.get` 반환값. 백엔드 `FetchAppMemberDetailResponse` 매핑. */
|
|
1306
|
+
interface AppMemberDetail {
|
|
1307
|
+
id: string;
|
|
1308
|
+
/** 개인정보 — 앱 소유자 권한으로만 내려온다. */
|
|
1309
|
+
email: string;
|
|
1310
|
+
nickname: string;
|
|
1311
|
+
custom_data: Record<string, unknown>;
|
|
1312
|
+
signup_time: string;
|
|
1313
|
+
update_time: string;
|
|
1314
|
+
identities: AppMemberIdentityDetail[];
|
|
1315
|
+
is_suspended: boolean;
|
|
1316
|
+
suspended_at?: string;
|
|
1317
|
+
suspended_until?: string;
|
|
1318
|
+
suspend_reason?: string;
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* 앱 멤버 **관리자 조회** API — 서버사이드 전용.
|
|
1322
|
+
*
|
|
1323
|
+
* 콘솔 JWT 또는 service_role 함수(`ctx.cbAdmin`)로 호출한다. Public Key(cb_pk_) 단독 브라우저
|
|
1324
|
+
* SDK 인스턴스로는 호출할 수 없다 — 다른 회원의 이메일을 클라이언트에서 읽는 경로를 만들지
|
|
1325
|
+
* 않기 위한 의도적 제약이다. 멤버가 **자기** 정보를 볼 때는 `cb.auth.getMe()` 를 쓴다.
|
|
1326
|
+
*
|
|
1327
|
+
* service_role 함수에서 쓰려면 함수 `management_scopes` 에 `app_member:read` 를 opt-in 해야
|
|
1328
|
+
* 한다. 이 스코프는 **이메일(개인정보)** 을 함께 열어주므로 어드민/CS 흐름에만 부여할 것.
|
|
1329
|
+
*
|
|
1330
|
+
* 쓰기(생성·삭제·정지·수정)와 활동 로그 조회는 콘솔 전용이다 — service_role 에 열려 있지 않다.
|
|
1331
|
+
*
|
|
1332
|
+
* @example
|
|
1333
|
+
* ```typescript
|
|
1334
|
+
* // 함수(service_role, management_scopes: ["app_member:read"]) 안에서
|
|
1335
|
+
* // 1) 문의로 들어온 이메일이 어느 회원인지 찾기
|
|
1336
|
+
* const found = await ctx.cbAdmin.appMembers.list(ctx.appId, { search: 'user@example.com' })
|
|
1337
|
+
* console.log(found.total_count, found.app_members[0]?.nickname)
|
|
1338
|
+
*
|
|
1339
|
+
* // 2) 회원 목록 페이지네이션 (자체 어드민 화면)
|
|
1340
|
+
* const page1 = await ctx.cbAdmin.appMembers.list(ctx.appId, { page: 1, pageSize: 50 })
|
|
1341
|
+
* for (const m of page1.app_members) console.log(m.email, m.nickname)
|
|
1342
|
+
*
|
|
1343
|
+
* // 3) 회원 상세 — 로그인 수단까지
|
|
1344
|
+
* const detail = await ctx.cbAdmin.appMembers.get(ctx.appId, found.app_members[0].id)
|
|
1345
|
+
* console.log(detail.email, detail.identities.map((i) => i.type))
|
|
1346
|
+
* ```
|
|
1347
|
+
*/
|
|
1348
|
+
declare class AppMembersAPI {
|
|
1349
|
+
private http;
|
|
1350
|
+
constructor(http: HttpClient);
|
|
1351
|
+
private ensureServerAuth;
|
|
1352
|
+
/**
|
|
1353
|
+
* 앱 멤버 목록을 조회한다 (이메일 포함). (management_scope: `app_member:read`)
|
|
1354
|
+
*
|
|
1355
|
+
* @param appId 앱 ID
|
|
1356
|
+
* @param options 페이지네이션 및 `search`(닉네임·이메일 부분 일치)
|
|
1357
|
+
*/
|
|
1358
|
+
list(appId: string, options?: ListAppMembersOptions): Promise<AppMemberList>;
|
|
1359
|
+
/**
|
|
1360
|
+
* 앱 멤버 상세를 조회한다 (이메일 + 로그인 수단 포함). (management_scope: `app_member:read`)
|
|
1361
|
+
*
|
|
1362
|
+
* @param appId 앱 ID
|
|
1363
|
+
* @param memberId 멤버 ID
|
|
1364
|
+
*/
|
|
1365
|
+
get(appId: string, memberId: string): Promise<AppMemberDetail>;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1256
1368
|
/** 앱 멤버 회원가입 요청 */
|
|
1257
1369
|
interface MemberSignUpRequest {
|
|
1258
1370
|
login_id: string;
|
|
@@ -9806,6 +9918,12 @@ declare class ConnectBase {
|
|
|
9806
9918
|
* service_role 함수에서는 management_scopes(role:read / role:manage)가 필요하다.
|
|
9807
9919
|
*/
|
|
9808
9920
|
readonly roles: RolesAPI;
|
|
9921
|
+
/**
|
|
9922
|
+
* 앱 멤버 관리자 조회 API — 서버사이드 전용(ctx.cbAdmin / 콘솔 JWT).
|
|
9923
|
+
* 이메일(개인정보)을 포함하므로 service_role 함수에서는 management_scope `app_member:read`
|
|
9924
|
+
* opt-in 이 필요하다. 멤버가 자기 정보를 볼 때는 `cb.auth.getMe()` 를 쓴다.
|
|
9925
|
+
*/
|
|
9926
|
+
readonly appMembers: AppMembersAPI;
|
|
9809
9927
|
/**
|
|
9810
9928
|
* 비디오 API (동영상 업로드/스트리밍)
|
|
9811
9929
|
*/
|
|
@@ -9895,4 +10013,4 @@ declare class ConnectBase {
|
|
|
9895
10013
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
9896
10014
|
}
|
|
9897
10015
|
|
|
9898
|
-
export { AIAPI, 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 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 ChangePlanPreview, type ChangePlanRequest, 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 CreateRolePayload, type CreateRoleResult, 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 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 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, 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 PreparePaymentRequest, type PreparePaymentResponse, 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 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 RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, 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 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 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 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 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, toAIError, toCreateRoomWire };
|
|
10016
|
+
export { AIAPI, 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 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 ChangePlanPreview, type ChangePlanRequest, 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 CreateRolePayload, type CreateRoleResult, 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 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 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, 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 PreparePaymentRequest, type PreparePaymentResponse, 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 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 RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, 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 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 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 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 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, toAIError, toCreateRoomWire };
|
package/dist/index.d.ts
CHANGED
|
@@ -1253,6 +1253,118 @@ declare class AnalyticsAPI {
|
|
|
1253
1253
|
private log;
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
|
+
/** 멤버의 로그인 수단. 백엔드 `appmemberidentity.ProviderType`. */
|
|
1257
|
+
type AppMemberProviderType = "EMAIL" | "USERNAME" | "GOOGLE" | "APPLE" | "KAKAO" | "NAVER" | "GITHUB" | "DISCORD" | "FACEBOOK" | "GUEST";
|
|
1258
|
+
/** 멤버 목록 항목의 identity. 백엔드 `FetchAppMemberIdentityItem` 매핑. */
|
|
1259
|
+
interface AppMemberIdentitySummary {
|
|
1260
|
+
id: string;
|
|
1261
|
+
type: AppMemberProviderType;
|
|
1262
|
+
create_time: string;
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* `cb.appMembers.list` 항목. 백엔드 `FetchAppMemberItem` 매핑.
|
|
1266
|
+
*
|
|
1267
|
+
* `email` 은 `app_members.email` 컬럼이 우선이고, NULL 이면 EMAIL identity 의 provider_uid 로
|
|
1268
|
+
* fallback 한다(backfill 이전 legacy 멤버). 이메일이 정말 없으면 빈 문자열이다.
|
|
1269
|
+
*/
|
|
1270
|
+
interface AppMemberListItem {
|
|
1271
|
+
id: string;
|
|
1272
|
+
/** 개인정보 — 앱 소유자 권한으로만 내려온다. 멤버 토큰에는 노출되지 않는다. */
|
|
1273
|
+
email: string;
|
|
1274
|
+
nickname: string;
|
|
1275
|
+
signup_time: string;
|
|
1276
|
+
identities: AppMemberIdentitySummary[];
|
|
1277
|
+
is_suspended: boolean;
|
|
1278
|
+
suspended_until?: string;
|
|
1279
|
+
}
|
|
1280
|
+
/** `cb.appMembers.list` 반환값. 백엔드 `FetchAppMemberResponse` 매핑. */
|
|
1281
|
+
interface AppMemberList {
|
|
1282
|
+
total_count: number;
|
|
1283
|
+
app_members: AppMemberListItem[];
|
|
1284
|
+
}
|
|
1285
|
+
/** `cb.appMembers.list` 조회 옵션. */
|
|
1286
|
+
interface ListAppMembersOptions {
|
|
1287
|
+
/** 1-based 페이지 번호 (기본 1). */
|
|
1288
|
+
page?: number;
|
|
1289
|
+
/** 페이지 크기 (기본 100). 100 을 넘기면 서버가 100 으로 절삭한다. */
|
|
1290
|
+
pageSize?: number;
|
|
1291
|
+
/**
|
|
1292
|
+
* 닉네임·이메일·로그인 identity(email/username)를 함께 부분 일치(대소문자 무시)한다.
|
|
1293
|
+
* 문의로 들어온 이메일이 어느 회원인지 대조하는 용도. `total_count` 도 이 필터를 반영한다.
|
|
1294
|
+
*/
|
|
1295
|
+
search?: string;
|
|
1296
|
+
}
|
|
1297
|
+
/** 멤버 상세의 identity. 백엔드 `FetchAppMemberIdentityDetail` 매핑. */
|
|
1298
|
+
interface AppMemberIdentityDetail {
|
|
1299
|
+
id: string;
|
|
1300
|
+
type: AppMemberProviderType;
|
|
1301
|
+
provider_uid: string;
|
|
1302
|
+
create_time: string;
|
|
1303
|
+
update_time: string;
|
|
1304
|
+
}
|
|
1305
|
+
/** `cb.appMembers.get` 반환값. 백엔드 `FetchAppMemberDetailResponse` 매핑. */
|
|
1306
|
+
interface AppMemberDetail {
|
|
1307
|
+
id: string;
|
|
1308
|
+
/** 개인정보 — 앱 소유자 권한으로만 내려온다. */
|
|
1309
|
+
email: string;
|
|
1310
|
+
nickname: string;
|
|
1311
|
+
custom_data: Record<string, unknown>;
|
|
1312
|
+
signup_time: string;
|
|
1313
|
+
update_time: string;
|
|
1314
|
+
identities: AppMemberIdentityDetail[];
|
|
1315
|
+
is_suspended: boolean;
|
|
1316
|
+
suspended_at?: string;
|
|
1317
|
+
suspended_until?: string;
|
|
1318
|
+
suspend_reason?: string;
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* 앱 멤버 **관리자 조회** API — 서버사이드 전용.
|
|
1322
|
+
*
|
|
1323
|
+
* 콘솔 JWT 또는 service_role 함수(`ctx.cbAdmin`)로 호출한다. Public Key(cb_pk_) 단독 브라우저
|
|
1324
|
+
* SDK 인스턴스로는 호출할 수 없다 — 다른 회원의 이메일을 클라이언트에서 읽는 경로를 만들지
|
|
1325
|
+
* 않기 위한 의도적 제약이다. 멤버가 **자기** 정보를 볼 때는 `cb.auth.getMe()` 를 쓴다.
|
|
1326
|
+
*
|
|
1327
|
+
* service_role 함수에서 쓰려면 함수 `management_scopes` 에 `app_member:read` 를 opt-in 해야
|
|
1328
|
+
* 한다. 이 스코프는 **이메일(개인정보)** 을 함께 열어주므로 어드민/CS 흐름에만 부여할 것.
|
|
1329
|
+
*
|
|
1330
|
+
* 쓰기(생성·삭제·정지·수정)와 활동 로그 조회는 콘솔 전용이다 — service_role 에 열려 있지 않다.
|
|
1331
|
+
*
|
|
1332
|
+
* @example
|
|
1333
|
+
* ```typescript
|
|
1334
|
+
* // 함수(service_role, management_scopes: ["app_member:read"]) 안에서
|
|
1335
|
+
* // 1) 문의로 들어온 이메일이 어느 회원인지 찾기
|
|
1336
|
+
* const found = await ctx.cbAdmin.appMembers.list(ctx.appId, { search: 'user@example.com' })
|
|
1337
|
+
* console.log(found.total_count, found.app_members[0]?.nickname)
|
|
1338
|
+
*
|
|
1339
|
+
* // 2) 회원 목록 페이지네이션 (자체 어드민 화면)
|
|
1340
|
+
* const page1 = await ctx.cbAdmin.appMembers.list(ctx.appId, { page: 1, pageSize: 50 })
|
|
1341
|
+
* for (const m of page1.app_members) console.log(m.email, m.nickname)
|
|
1342
|
+
*
|
|
1343
|
+
* // 3) 회원 상세 — 로그인 수단까지
|
|
1344
|
+
* const detail = await ctx.cbAdmin.appMembers.get(ctx.appId, found.app_members[0].id)
|
|
1345
|
+
* console.log(detail.email, detail.identities.map((i) => i.type))
|
|
1346
|
+
* ```
|
|
1347
|
+
*/
|
|
1348
|
+
declare class AppMembersAPI {
|
|
1349
|
+
private http;
|
|
1350
|
+
constructor(http: HttpClient);
|
|
1351
|
+
private ensureServerAuth;
|
|
1352
|
+
/**
|
|
1353
|
+
* 앱 멤버 목록을 조회한다 (이메일 포함). (management_scope: `app_member:read`)
|
|
1354
|
+
*
|
|
1355
|
+
* @param appId 앱 ID
|
|
1356
|
+
* @param options 페이지네이션 및 `search`(닉네임·이메일 부분 일치)
|
|
1357
|
+
*/
|
|
1358
|
+
list(appId: string, options?: ListAppMembersOptions): Promise<AppMemberList>;
|
|
1359
|
+
/**
|
|
1360
|
+
* 앱 멤버 상세를 조회한다 (이메일 + 로그인 수단 포함). (management_scope: `app_member:read`)
|
|
1361
|
+
*
|
|
1362
|
+
* @param appId 앱 ID
|
|
1363
|
+
* @param memberId 멤버 ID
|
|
1364
|
+
*/
|
|
1365
|
+
get(appId: string, memberId: string): Promise<AppMemberDetail>;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1256
1368
|
/** 앱 멤버 회원가입 요청 */
|
|
1257
1369
|
interface MemberSignUpRequest {
|
|
1258
1370
|
login_id: string;
|
|
@@ -9806,6 +9918,12 @@ declare class ConnectBase {
|
|
|
9806
9918
|
* service_role 함수에서는 management_scopes(role:read / role:manage)가 필요하다.
|
|
9807
9919
|
*/
|
|
9808
9920
|
readonly roles: RolesAPI;
|
|
9921
|
+
/**
|
|
9922
|
+
* 앱 멤버 관리자 조회 API — 서버사이드 전용(ctx.cbAdmin / 콘솔 JWT).
|
|
9923
|
+
* 이메일(개인정보)을 포함하므로 service_role 함수에서는 management_scope `app_member:read`
|
|
9924
|
+
* opt-in 이 필요하다. 멤버가 자기 정보를 볼 때는 `cb.auth.getMe()` 를 쓴다.
|
|
9925
|
+
*/
|
|
9926
|
+
readonly appMembers: AppMembersAPI;
|
|
9809
9927
|
/**
|
|
9810
9928
|
* 비디오 API (동영상 업로드/스트리밍)
|
|
9811
9929
|
*/
|
|
@@ -9895,4 +10013,4 @@ declare class ConnectBase {
|
|
|
9895
10013
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
9896
10014
|
}
|
|
9897
10015
|
|
|
9898
|
-
export { AIAPI, 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 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 ChangePlanPreview, type ChangePlanRequest, 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 CreateRolePayload, type CreateRoleResult, 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 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 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, 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 PreparePaymentRequest, type PreparePaymentResponse, 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 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 RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, 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 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 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 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 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, toAIError, toCreateRoomWire };
|
|
10016
|
+
export { AIAPI, 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 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 ChangePlanPreview, type ChangePlanRequest, 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 CreateRolePayload, type CreateRoleResult, 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 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 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 OnPaymentFailure, type OpenDialogOptions, type OpenDialogResult, 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 PreparePaymentRequest, type PreparePaymentResponse, 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 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 RoleDetail, type RoleList, type RoleListItem, type RolePermissionItem, type RoleUserItem, RolesAPI, 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 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 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 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 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, toAIError, toCreateRoomWire };
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __export(index_exports, {
|
|
|
25
25
|
AUTH_MEMBER_ID_TOKEN: () => AUTH_MEMBER_ID_TOKEN,
|
|
26
26
|
AdsAPI: () => AdsAPI,
|
|
27
27
|
ApiError: () => ApiError,
|
|
28
|
+
AppMembersAPI: () => AppMembersAPI,
|
|
28
29
|
AuthError: () => AuthError,
|
|
29
30
|
ConnectBase: () => ConnectBase,
|
|
30
31
|
EndpointAPI: () => EndpointAPI,
|
|
@@ -1368,6 +1369,51 @@ var AnalyticsAPI = class {
|
|
|
1368
1369
|
}
|
|
1369
1370
|
};
|
|
1370
1371
|
|
|
1372
|
+
// src/api/app-members.ts
|
|
1373
|
+
var AppMembersAPI = class {
|
|
1374
|
+
constructor(http) {
|
|
1375
|
+
this.http = http;
|
|
1376
|
+
}
|
|
1377
|
+
ensureServerAuth(method) {
|
|
1378
|
+
if (this.http.hasPublicKey() && !this.http.hasJWT()) {
|
|
1379
|
+
throw new Error(
|
|
1380
|
+
`cb.appMembers.${method}() \uB294 \uCF58\uC194 JWT \uB610\uB294 service_role(ctx.cbAdmin, management_scopes: ["app_member:read"]) \uC778\uC99D\uC774 \uD544\uC694\uD569\uB2C8\uB2E4. Public Key(cb_pk_) \uB2E8\uB3C5 SDK \uC778\uC2A4\uD134\uC2A4\uB85C\uB294 \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC790\uAE30 \uC815\uBCF4\uB294 cb.auth.getMe() \uB97C \uC4F0\uC138\uC694.`
|
|
1381
|
+
);
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
/**
|
|
1385
|
+
* 앱 멤버 목록을 조회한다 (이메일 포함). (management_scope: `app_member:read`)
|
|
1386
|
+
*
|
|
1387
|
+
* @param appId 앱 ID
|
|
1388
|
+
* @param options 페이지네이션 및 `search`(닉네임·이메일 부분 일치)
|
|
1389
|
+
*/
|
|
1390
|
+
async list(appId, options = {}) {
|
|
1391
|
+
this.ensureServerAuth("list");
|
|
1392
|
+
const query = new URLSearchParams();
|
|
1393
|
+
if (options.page !== void 0) query.set("page", String(options.page));
|
|
1394
|
+
if (options.pageSize !== void 0)
|
|
1395
|
+
query.set("page_size", String(options.pageSize));
|
|
1396
|
+
const search = options.search?.trim();
|
|
1397
|
+
if (search) query.set("search", search);
|
|
1398
|
+
const qs = query.toString();
|
|
1399
|
+
return this.http.get(
|
|
1400
|
+
`/v1/apps/${appId}/app-members${qs ? `?${qs}` : ""}`
|
|
1401
|
+
);
|
|
1402
|
+
}
|
|
1403
|
+
/**
|
|
1404
|
+
* 앱 멤버 상세를 조회한다 (이메일 + 로그인 수단 포함). (management_scope: `app_member:read`)
|
|
1405
|
+
*
|
|
1406
|
+
* @param appId 앱 ID
|
|
1407
|
+
* @param memberId 멤버 ID
|
|
1408
|
+
*/
|
|
1409
|
+
async get(appId, memberId) {
|
|
1410
|
+
this.ensureServerAuth("get");
|
|
1411
|
+
return this.http.get(
|
|
1412
|
+
`/v1/apps/${appId}/app-members/${memberId}`
|
|
1413
|
+
);
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1371
1417
|
// src/core/validate.ts
|
|
1372
1418
|
function checkType(value, type) {
|
|
1373
1419
|
switch (type) {
|
|
@@ -12346,6 +12392,7 @@ var ConnectBase = class {
|
|
|
12346
12392
|
this.subscription = new SubscriptionAPI(this.http);
|
|
12347
12393
|
this.push = new PushAPI(this.http);
|
|
12348
12394
|
this.roles = new RolesAPI(this.http);
|
|
12395
|
+
this.appMembers = new AppMembersAPI(this.http);
|
|
12349
12396
|
this.video = new VideoAPI(
|
|
12350
12397
|
this.http,
|
|
12351
12398
|
config.videoUrl || env("CB_VIDEO_URL") || DEFAULT_VIDEO_URL
|
|
@@ -12445,6 +12492,7 @@ var index_default = ConnectBase;
|
|
|
12445
12492
|
AUTH_MEMBER_ID_TOKEN,
|
|
12446
12493
|
AdsAPI,
|
|
12447
12494
|
ApiError,
|
|
12495
|
+
AppMembersAPI,
|
|
12448
12496
|
AuthError,
|
|
12449
12497
|
ConnectBase,
|
|
12450
12498
|
EndpointAPI,
|
package/dist/index.mjs
CHANGED
|
@@ -1320,6 +1320,51 @@ var AnalyticsAPI = class {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
};
|
|
1322
1322
|
|
|
1323
|
+
// src/api/app-members.ts
|
|
1324
|
+
var AppMembersAPI = class {
|
|
1325
|
+
constructor(http) {
|
|
1326
|
+
this.http = http;
|
|
1327
|
+
}
|
|
1328
|
+
ensureServerAuth(method) {
|
|
1329
|
+
if (this.http.hasPublicKey() && !this.http.hasJWT()) {
|
|
1330
|
+
throw new Error(
|
|
1331
|
+
`cb.appMembers.${method}() \uB294 \uCF58\uC194 JWT \uB610\uB294 service_role(ctx.cbAdmin, management_scopes: ["app_member:read"]) \uC778\uC99D\uC774 \uD544\uC694\uD569\uB2C8\uB2E4. Public Key(cb_pk_) \uB2E8\uB3C5 SDK \uC778\uC2A4\uD134\uC2A4\uB85C\uB294 \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC790\uAE30 \uC815\uBCF4\uB294 cb.auth.getMe() \uB97C \uC4F0\uC138\uC694.`
|
|
1332
|
+
);
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* 앱 멤버 목록을 조회한다 (이메일 포함). (management_scope: `app_member:read`)
|
|
1337
|
+
*
|
|
1338
|
+
* @param appId 앱 ID
|
|
1339
|
+
* @param options 페이지네이션 및 `search`(닉네임·이메일 부분 일치)
|
|
1340
|
+
*/
|
|
1341
|
+
async list(appId, options = {}) {
|
|
1342
|
+
this.ensureServerAuth("list");
|
|
1343
|
+
const query = new URLSearchParams();
|
|
1344
|
+
if (options.page !== void 0) query.set("page", String(options.page));
|
|
1345
|
+
if (options.pageSize !== void 0)
|
|
1346
|
+
query.set("page_size", String(options.pageSize));
|
|
1347
|
+
const search = options.search?.trim();
|
|
1348
|
+
if (search) query.set("search", search);
|
|
1349
|
+
const qs = query.toString();
|
|
1350
|
+
return this.http.get(
|
|
1351
|
+
`/v1/apps/${appId}/app-members${qs ? `?${qs}` : ""}`
|
|
1352
|
+
);
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* 앱 멤버 상세를 조회한다 (이메일 + 로그인 수단 포함). (management_scope: `app_member:read`)
|
|
1356
|
+
*
|
|
1357
|
+
* @param appId 앱 ID
|
|
1358
|
+
* @param memberId 멤버 ID
|
|
1359
|
+
*/
|
|
1360
|
+
async get(appId, memberId) {
|
|
1361
|
+
this.ensureServerAuth("get");
|
|
1362
|
+
return this.http.get(
|
|
1363
|
+
`/v1/apps/${appId}/app-members/${memberId}`
|
|
1364
|
+
);
|
|
1365
|
+
}
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1323
1368
|
// src/core/validate.ts
|
|
1324
1369
|
function checkType(value, type) {
|
|
1325
1370
|
switch (type) {
|
|
@@ -12298,6 +12343,7 @@ var ConnectBase = class {
|
|
|
12298
12343
|
this.subscription = new SubscriptionAPI(this.http);
|
|
12299
12344
|
this.push = new PushAPI(this.http);
|
|
12300
12345
|
this.roles = new RolesAPI(this.http);
|
|
12346
|
+
this.appMembers = new AppMembersAPI(this.http);
|
|
12301
12347
|
this.video = new VideoAPI(
|
|
12302
12348
|
this.http,
|
|
12303
12349
|
config.videoUrl || env("CB_VIDEO_URL") || DEFAULT_VIDEO_URL
|
|
@@ -12396,6 +12442,7 @@ export {
|
|
|
12396
12442
|
AUTH_MEMBER_ID_TOKEN,
|
|
12397
12443
|
AdsAPI,
|
|
12398
12444
|
ApiError,
|
|
12445
|
+
AppMembersAPI,
|
|
12399
12446
|
AuthError,
|
|
12400
12447
|
ConnectBase,
|
|
12401
12448
|
EndpointAPI,
|