connectbase-client 3.35.2 → 3.37.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 +43 -0
- package/dist/connect-base.umd.js +2 -2
- package/dist/index.d.mts +98 -25
- package/dist/index.d.ts +98 -25
- package/dist/index.js +99 -51
- package/dist/index.mjs +99 -51
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1324,7 +1324,8 @@ interface BulkError {
|
|
|
1324
1324
|
error: string;
|
|
1325
1325
|
}
|
|
1326
1326
|
interface DeleteWhereResponse {
|
|
1327
|
-
|
|
1327
|
+
deleted_count: number;
|
|
1328
|
+
failed_count?: number;
|
|
1328
1329
|
}
|
|
1329
1330
|
interface SecurityRule {
|
|
1330
1331
|
id: string;
|
|
@@ -4111,8 +4112,8 @@ declare class OAuthAPI {
|
|
|
4111
4112
|
} | null>;
|
|
4112
4113
|
}
|
|
4113
4114
|
|
|
4114
|
-
type PaymentProvider =
|
|
4115
|
-
type PaymentStatus =
|
|
4115
|
+
type PaymentProvider = "toss" | "stripe" | "payapp";
|
|
4116
|
+
type PaymentStatus = "pending" | "ready" | "in_progress" | "done" | "canceled" | "partial_canceled" | "aborted" | "expired" | "failed";
|
|
4116
4117
|
interface PreparePaymentRequest {
|
|
4117
4118
|
amount: number;
|
|
4118
4119
|
order_name: string;
|
|
@@ -4134,6 +4135,8 @@ interface PreparePaymentResponse {
|
|
|
4134
4135
|
fail_url: string;
|
|
4135
4136
|
stripe_client_secret?: string;
|
|
4136
4137
|
stripe_publishable_key?: string;
|
|
4138
|
+
payapp_pay_url?: string;
|
|
4139
|
+
payapp_mul_no?: string;
|
|
4137
4140
|
}
|
|
4138
4141
|
interface CreateCheckoutSessionRequest {
|
|
4139
4142
|
amount: number;
|
|
@@ -4249,7 +4252,16 @@ declare class PaymentAPI {
|
|
|
4249
4252
|
* // Mount PaymentElement, then:
|
|
4250
4253
|
* // stripe.confirmPayment({ elements, redirect: 'if_required' })
|
|
4251
4254
|
* }
|
|
4255
|
+
*
|
|
4256
|
+
* // PayApp 결제 플로우 (위젯 불필요 — 호스팅 결제창으로 redirect)
|
|
4257
|
+
* // 결제 결과는 서버의 feedbackurl webhook 으로 확정되며, 사용자는 success_url 로 복귀한다.
|
|
4258
|
+
* if (result.payment_provider === 'payapp' && result.payapp_pay_url) {
|
|
4259
|
+
* window.location.href = result.payapp_pay_url
|
|
4260
|
+
* }
|
|
4252
4261
|
* ```
|
|
4262
|
+
*
|
|
4263
|
+
* @remarks
|
|
4264
|
+
* PayApp 은 `customer_phone` 이 필수입니다(결제요청 수신 번호). 미지정 시 서버가 거부합니다.
|
|
4253
4265
|
*/
|
|
4254
4266
|
prepare(data: PreparePaymentRequest): Promise<PreparePaymentResponse>;
|
|
4255
4267
|
/**
|
|
@@ -4410,8 +4422,8 @@ interface ListBillingKeysResponse {
|
|
|
4410
4422
|
type BillingCycle = 'daily' | 'weekly' | 'monthly' | 'yearly';
|
|
4411
4423
|
type SubscriptionStatus = 'active' | 'paused' | 'canceled' | 'past_due' | 'expired' | 'trial';
|
|
4412
4424
|
interface CreateSubscriptionRequest {
|
|
4413
|
-
/** 빌링키 ID */
|
|
4414
|
-
billing_key_id
|
|
4425
|
+
/** 빌링키 ID (toss/stripe 필수, payapp 미사용 — payurl 모델) */
|
|
4426
|
+
billing_key_id?: string;
|
|
4415
4427
|
/** 플랜 이름 */
|
|
4416
4428
|
plan_name: string;
|
|
4417
4429
|
/** 플랜 설명 */
|
|
@@ -4430,6 +4442,10 @@ interface CreateSubscriptionRequest {
|
|
|
4430
4442
|
customer_email?: string;
|
|
4431
4443
|
/** 고객 이름 */
|
|
4432
4444
|
customer_name?: string;
|
|
4445
|
+
/** 고객 전화번호 (payapp 정기결제 필수 — rebillRegist recvphone) */
|
|
4446
|
+
customer_phone?: string;
|
|
4447
|
+
/** payapp 정기결제 만료일 yyyy-mm-dd (미입력시 +10년) */
|
|
4448
|
+
expire_date?: string;
|
|
4433
4449
|
/** 메타데이터 */
|
|
4434
4450
|
metadata?: Record<string, unknown>;
|
|
4435
4451
|
}
|
|
@@ -4438,6 +4454,10 @@ interface SubscriptionResponse {
|
|
|
4438
4454
|
id: string;
|
|
4439
4455
|
/** 구독 ID (문자열) */
|
|
4440
4456
|
subscription_id: string;
|
|
4457
|
+
/** 결제 프로바이더 */
|
|
4458
|
+
provider?: 'toss' | 'stripe' | 'payapp';
|
|
4459
|
+
/** payapp: 카드등록+1회차 결제창 URL. 이 URL로 사용자를 redirect 시킨다 (위젯 불필요) */
|
|
4460
|
+
payapp_pay_url?: string;
|
|
4441
4461
|
/** 플랜 이름 */
|
|
4442
4462
|
plan_name: string;
|
|
4443
4463
|
/** 플랜 설명 */
|
|
@@ -5062,20 +5082,22 @@ declare class PushAPI {
|
|
|
5062
5082
|
*/
|
|
5063
5083
|
unregisterWebPush(deviceToken: string): Promise<void>;
|
|
5064
5084
|
/**
|
|
5065
|
-
* 회원 ID 목록으로 푸시 발송 — Functions /
|
|
5085
|
+
* 회원 ID 목록으로 푸시 발송 — Functions / 서버사이드 인증 환경 전용.
|
|
5066
5086
|
*
|
|
5067
|
-
* 백엔드 라우트 `POST /v1/apps/:appID/push/send` 는 콘솔 JWT
|
|
5068
|
-
* (`
|
|
5069
|
-
* 자체가
|
|
5087
|
+
* 백엔드 라우트 `POST /v1/apps/:appID/push/send` 는 콘솔 JWT, User Secret Key(`cb_sk_`),
|
|
5088
|
+
* 또는 service_role 토큰(`ctx.cbAdmin`)을 받는다. 브라우저 SDK 의 Public Key(`cb_pk_`)
|
|
5089
|
+
* **단독** 인스턴스에서는 호출 자체가 차단되며(권한 누설 방지), 명확한 에러를 던진다.
|
|
5090
|
+
* 위임 Bearer 토큰을 가진 인스턴스(`ctx.cbAdmin`/`ctx.cb`)는 cb_pk_ 가 앱 식별용으로만
|
|
5091
|
+
* 실리므로 허용된다.
|
|
5070
5092
|
*
|
|
5071
|
-
* @param appId 발송 대상 앱 ID
|
|
5093
|
+
* @param appId 발송 대상 앱 ID.
|
|
5072
5094
|
* @param memberIds 받는 회원 ID 배열 (UUID).
|
|
5073
5095
|
* @param payload 푸시 내용/옵션.
|
|
5074
5096
|
*
|
|
5075
5097
|
* @example
|
|
5076
5098
|
* ```ts
|
|
5077
|
-
* // ConnectBase Function (
|
|
5078
|
-
* const result = await
|
|
5099
|
+
* // ConnectBase Function (service_role=true) — 시크릿 키 없이 ctx.cbAdmin 으로 발송
|
|
5100
|
+
* const result = await ctx.cbAdmin.push.sendToMembers(ctx.appId, [memberId], {
|
|
5079
5101
|
* title: '새 알림',
|
|
5080
5102
|
* body: '확인해보세요',
|
|
5081
5103
|
* data: { route: '/notifications' },
|
|
@@ -5165,9 +5187,11 @@ interface UpdateVideoRequest {
|
|
|
5165
5187
|
thumbnail_url?: string;
|
|
5166
5188
|
}
|
|
5167
5189
|
interface StreamURLResponse {
|
|
5168
|
-
|
|
5190
|
+
/** 마스터 HLS 플레이리스트 URL (적응형 비트레이트) */
|
|
5191
|
+
master_playlist: string;
|
|
5192
|
+
/** 화질 키 → 화질별 플레이리스트 URL 맵 (예: { "720p": "https://..." }) */
|
|
5193
|
+
qualities: Record<string, string>;
|
|
5169
5194
|
expires_at: string;
|
|
5170
|
-
quality?: string;
|
|
5171
5195
|
}
|
|
5172
5196
|
interface InitUploadResponse {
|
|
5173
5197
|
upload_id: string;
|
|
@@ -5397,6 +5421,35 @@ interface SuperChat {
|
|
|
5397
5421
|
};
|
|
5398
5422
|
created_at: string;
|
|
5399
5423
|
}
|
|
5424
|
+
type SuperChatType = 'super_chat' | 'super_thanks' | 'super_sticker' | 'tip';
|
|
5425
|
+
/** sendSuperChat 옵션 — videoId 또는 liveId 중 하나로 대상을 지정한다. */
|
|
5426
|
+
interface SendSuperChatOptions {
|
|
5427
|
+
/** 대상 영상 ID (videoId 또는 liveId 중 하나 필수) */
|
|
5428
|
+
videoId?: string;
|
|
5429
|
+
/** 대상 라이브 ID */
|
|
5430
|
+
liveId?: string;
|
|
5431
|
+
/** 슈퍼챗 종류 (기본 'super_thanks') */
|
|
5432
|
+
type?: SuperChatType;
|
|
5433
|
+
message?: string;
|
|
5434
|
+
/** ISO 통화 코드 (기본 'USD') */
|
|
5435
|
+
currency?: string;
|
|
5436
|
+
stickerId?: string;
|
|
5437
|
+
}
|
|
5438
|
+
/**
|
|
5439
|
+
* 슈퍼챗 전송 응답. `client_secret` 으로 결제(Stripe PaymentIntent)를 확정해야
|
|
5440
|
+
* 슈퍼챗이 노출된다.
|
|
5441
|
+
*/
|
|
5442
|
+
interface SendSuperChatResponse {
|
|
5443
|
+
super_chat_id: string;
|
|
5444
|
+
client_secret: string;
|
|
5445
|
+
amount: number;
|
|
5446
|
+
currency: string;
|
|
5447
|
+
platform_fee: number;
|
|
5448
|
+
creator_amount: number;
|
|
5449
|
+
display_duration: number;
|
|
5450
|
+
color: string;
|
|
5451
|
+
highlighted: boolean;
|
|
5452
|
+
}
|
|
5400
5453
|
|
|
5401
5454
|
declare class VideoProcessingError extends Error {
|
|
5402
5455
|
video?: Video;
|
|
@@ -5470,8 +5523,9 @@ declare class VideoAPI {
|
|
|
5470
5523
|
*
|
|
5471
5524
|
* @example
|
|
5472
5525
|
* ```ts
|
|
5473
|
-
* const {
|
|
5474
|
-
* videoElement.src =
|
|
5526
|
+
* const { master_playlist, qualities, expires_at } = await cb.video.getStreamUrl(videoId)
|
|
5527
|
+
* videoElement.src = master_playlist // 적응형 비트레이트(HLS.js 등으로 재생)
|
|
5528
|
+
* // 특정 화질 고정이 필요하면 qualities['720p'] 사용
|
|
5475
5529
|
* ```
|
|
5476
5530
|
*/
|
|
5477
5531
|
getStreamUrl(videoId: string, quality?: string): Promise<StreamURLResponse>;
|
|
@@ -5515,15 +5569,18 @@ declare class VideoAPI {
|
|
|
5515
5569
|
*/
|
|
5516
5570
|
unsubscribeChannel(channelId: string): Promise<void>;
|
|
5517
5571
|
/**
|
|
5518
|
-
* Create a playlist
|
|
5572
|
+
* Create a playlist for a channel.
|
|
5573
|
+
* 백엔드는 `POST /v1/public/playlists` 에 body 로 `channel_id` 를 받는다 (AppMember 인증).
|
|
5519
5574
|
*/
|
|
5520
5575
|
createPlaylist(channelId: string, data: CreatePlaylistRequest): Promise<Playlist>;
|
|
5521
5576
|
/**
|
|
5522
|
-
* Get
|
|
5577
|
+
* Get a channel's public playlists.
|
|
5578
|
+
* 백엔드는 `GET /v1/public/playlists/public?channel_id=` 로 공개 플레이리스트를 반환한다.
|
|
5523
5579
|
*/
|
|
5524
5580
|
getPlaylists(channelId: string): Promise<Playlist[]>;
|
|
5525
5581
|
/**
|
|
5526
|
-
* Get playlist items
|
|
5582
|
+
* Get playlist items.
|
|
5583
|
+
* 백엔드는 별도 items 라우트가 없고 `GET /v1/public/playlists/:id` 응답에 items 를 포함한다.
|
|
5527
5584
|
*/
|
|
5528
5585
|
getPlaylistItems(playlistId: string): Promise<PlaylistItem[]>;
|
|
5529
5586
|
/**
|
|
@@ -5597,22 +5654,38 @@ declare class VideoAPI {
|
|
|
5597
5654
|
getMembershipTiers(channelId: string): Promise<MembershipTier[]>;
|
|
5598
5655
|
/**
|
|
5599
5656
|
* Join a membership tier
|
|
5657
|
+
*
|
|
5658
|
+
* @param _channelId 현재 서버에서 무시됩니다 (tier 가 채널을 함의). API 안정성을 위해 시그니처만 유지.
|
|
5659
|
+
* @param tierId 가입할 멤버십 티어 ID
|
|
5600
5660
|
*/
|
|
5601
|
-
joinMembership(
|
|
5661
|
+
joinMembership(_channelId: string, tierId: string): Promise<ChannelMembership>;
|
|
5602
5662
|
/**
|
|
5603
5663
|
* Cancel membership
|
|
5664
|
+
*
|
|
5665
|
+
* @param _channelId 현재 서버에서 무시됩니다. API 안정성을 위해 시그니처만 유지.
|
|
5666
|
+
* @param membershipId 취소할 멤버십 ID
|
|
5604
5667
|
*/
|
|
5605
|
-
cancelMembership(
|
|
5668
|
+
cancelMembership(_channelId: string, membershipId: string): Promise<void>;
|
|
5606
5669
|
/**
|
|
5607
|
-
* Send a super chat
|
|
5670
|
+
* Send a super chat to a channel.
|
|
5671
|
+
*
|
|
5672
|
+
* 백엔드는 `POST /v1/public/super-chats` 에 `channel_id`/`type`/`amount` 를 요구하고,
|
|
5673
|
+
* `video_id` 또는 `live_id` 중 하나로 대상을 지정한다 (AppMember 인증 필수).
|
|
5674
|
+
* 응답의 `client_secret` 으로 결제(Stripe)를 확정해야 슈퍼챗이 노출된다.
|
|
5675
|
+
*
|
|
5676
|
+
* @param channelId 슈퍼챗을 받을 채널 ID
|
|
5677
|
+
* @param amount 금액(최소 단위 정수)
|
|
5678
|
+
* @param options videoId 또는 liveId 중 하나로 대상 지정 + 종류/메시지/통화
|
|
5608
5679
|
*/
|
|
5609
|
-
sendSuperChat(
|
|
5680
|
+
sendSuperChat(channelId: string, amount: number, options?: SendSuperChatOptions): Promise<SendSuperChatResponse>;
|
|
5610
5681
|
/**
|
|
5611
5682
|
* Get super chats for a video
|
|
5612
5683
|
*/
|
|
5613
5684
|
getSuperChats(videoId: string): Promise<SuperChat[]>;
|
|
5614
5685
|
/**
|
|
5615
5686
|
* Get recommended videos
|
|
5687
|
+
*
|
|
5688
|
+
* @deprecated Use getHomeFeed() — 동일한 개인화 피드(`/recommendations/feed`)를 반환합니다.
|
|
5616
5689
|
*/
|
|
5617
5690
|
getRecommendations(limit?: number): Promise<Video[]>;
|
|
5618
5691
|
/**
|
|
@@ -5742,7 +5815,7 @@ declare class GameConfigAPI {
|
|
|
5742
5815
|
/**
|
|
5743
5816
|
* 단일 기능 활성화 — set() 의 편의 wrapper.
|
|
5744
5817
|
*
|
|
5745
|
-
* @example await cb.game.config.enable(appId, "
|
|
5818
|
+
* @example await cb.game.config.enable(appId, "matchqueue_enabled")
|
|
5746
5819
|
*/
|
|
5747
5820
|
enable(appId: string, feature: keyof GameConfig): Promise<GameConfig>;
|
|
5748
5821
|
/**
|
|
@@ -8987,4 +9060,4 @@ declare class ConnectBase {
|
|
|
8987
9060
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
8988
9061
|
}
|
|
8989
9062
|
|
|
8990
|
-
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 GuestMemberSignInResponse, GuestSessionConflictError, 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 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 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 };
|
|
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 GuestMemberSignInResponse, GuestSessionConflictError, 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
|
@@ -1324,7 +1324,8 @@ interface BulkError {
|
|
|
1324
1324
|
error: string;
|
|
1325
1325
|
}
|
|
1326
1326
|
interface DeleteWhereResponse {
|
|
1327
|
-
|
|
1327
|
+
deleted_count: number;
|
|
1328
|
+
failed_count?: number;
|
|
1328
1329
|
}
|
|
1329
1330
|
interface SecurityRule {
|
|
1330
1331
|
id: string;
|
|
@@ -4111,8 +4112,8 @@ declare class OAuthAPI {
|
|
|
4111
4112
|
} | null>;
|
|
4112
4113
|
}
|
|
4113
4114
|
|
|
4114
|
-
type PaymentProvider =
|
|
4115
|
-
type PaymentStatus =
|
|
4115
|
+
type PaymentProvider = "toss" | "stripe" | "payapp";
|
|
4116
|
+
type PaymentStatus = "pending" | "ready" | "in_progress" | "done" | "canceled" | "partial_canceled" | "aborted" | "expired" | "failed";
|
|
4116
4117
|
interface PreparePaymentRequest {
|
|
4117
4118
|
amount: number;
|
|
4118
4119
|
order_name: string;
|
|
@@ -4134,6 +4135,8 @@ interface PreparePaymentResponse {
|
|
|
4134
4135
|
fail_url: string;
|
|
4135
4136
|
stripe_client_secret?: string;
|
|
4136
4137
|
stripe_publishable_key?: string;
|
|
4138
|
+
payapp_pay_url?: string;
|
|
4139
|
+
payapp_mul_no?: string;
|
|
4137
4140
|
}
|
|
4138
4141
|
interface CreateCheckoutSessionRequest {
|
|
4139
4142
|
amount: number;
|
|
@@ -4249,7 +4252,16 @@ declare class PaymentAPI {
|
|
|
4249
4252
|
* // Mount PaymentElement, then:
|
|
4250
4253
|
* // stripe.confirmPayment({ elements, redirect: 'if_required' })
|
|
4251
4254
|
* }
|
|
4255
|
+
*
|
|
4256
|
+
* // PayApp 결제 플로우 (위젯 불필요 — 호스팅 결제창으로 redirect)
|
|
4257
|
+
* // 결제 결과는 서버의 feedbackurl webhook 으로 확정되며, 사용자는 success_url 로 복귀한다.
|
|
4258
|
+
* if (result.payment_provider === 'payapp' && result.payapp_pay_url) {
|
|
4259
|
+
* window.location.href = result.payapp_pay_url
|
|
4260
|
+
* }
|
|
4252
4261
|
* ```
|
|
4262
|
+
*
|
|
4263
|
+
* @remarks
|
|
4264
|
+
* PayApp 은 `customer_phone` 이 필수입니다(결제요청 수신 번호). 미지정 시 서버가 거부합니다.
|
|
4253
4265
|
*/
|
|
4254
4266
|
prepare(data: PreparePaymentRequest): Promise<PreparePaymentResponse>;
|
|
4255
4267
|
/**
|
|
@@ -4410,8 +4422,8 @@ interface ListBillingKeysResponse {
|
|
|
4410
4422
|
type BillingCycle = 'daily' | 'weekly' | 'monthly' | 'yearly';
|
|
4411
4423
|
type SubscriptionStatus = 'active' | 'paused' | 'canceled' | 'past_due' | 'expired' | 'trial';
|
|
4412
4424
|
interface CreateSubscriptionRequest {
|
|
4413
|
-
/** 빌링키 ID */
|
|
4414
|
-
billing_key_id
|
|
4425
|
+
/** 빌링키 ID (toss/stripe 필수, payapp 미사용 — payurl 모델) */
|
|
4426
|
+
billing_key_id?: string;
|
|
4415
4427
|
/** 플랜 이름 */
|
|
4416
4428
|
plan_name: string;
|
|
4417
4429
|
/** 플랜 설명 */
|
|
@@ -4430,6 +4442,10 @@ interface CreateSubscriptionRequest {
|
|
|
4430
4442
|
customer_email?: string;
|
|
4431
4443
|
/** 고객 이름 */
|
|
4432
4444
|
customer_name?: string;
|
|
4445
|
+
/** 고객 전화번호 (payapp 정기결제 필수 — rebillRegist recvphone) */
|
|
4446
|
+
customer_phone?: string;
|
|
4447
|
+
/** payapp 정기결제 만료일 yyyy-mm-dd (미입력시 +10년) */
|
|
4448
|
+
expire_date?: string;
|
|
4433
4449
|
/** 메타데이터 */
|
|
4434
4450
|
metadata?: Record<string, unknown>;
|
|
4435
4451
|
}
|
|
@@ -4438,6 +4454,10 @@ interface SubscriptionResponse {
|
|
|
4438
4454
|
id: string;
|
|
4439
4455
|
/** 구독 ID (문자열) */
|
|
4440
4456
|
subscription_id: string;
|
|
4457
|
+
/** 결제 프로바이더 */
|
|
4458
|
+
provider?: 'toss' | 'stripe' | 'payapp';
|
|
4459
|
+
/** payapp: 카드등록+1회차 결제창 URL. 이 URL로 사용자를 redirect 시킨다 (위젯 불필요) */
|
|
4460
|
+
payapp_pay_url?: string;
|
|
4441
4461
|
/** 플랜 이름 */
|
|
4442
4462
|
plan_name: string;
|
|
4443
4463
|
/** 플랜 설명 */
|
|
@@ -5062,20 +5082,22 @@ declare class PushAPI {
|
|
|
5062
5082
|
*/
|
|
5063
5083
|
unregisterWebPush(deviceToken: string): Promise<void>;
|
|
5064
5084
|
/**
|
|
5065
|
-
* 회원 ID 목록으로 푸시 발송 — Functions /
|
|
5085
|
+
* 회원 ID 목록으로 푸시 발송 — Functions / 서버사이드 인증 환경 전용.
|
|
5066
5086
|
*
|
|
5067
|
-
* 백엔드 라우트 `POST /v1/apps/:appID/push/send` 는 콘솔 JWT
|
|
5068
|
-
* (`
|
|
5069
|
-
* 자체가
|
|
5087
|
+
* 백엔드 라우트 `POST /v1/apps/:appID/push/send` 는 콘솔 JWT, User Secret Key(`cb_sk_`),
|
|
5088
|
+
* 또는 service_role 토큰(`ctx.cbAdmin`)을 받는다. 브라우저 SDK 의 Public Key(`cb_pk_`)
|
|
5089
|
+
* **단독** 인스턴스에서는 호출 자체가 차단되며(권한 누설 방지), 명확한 에러를 던진다.
|
|
5090
|
+
* 위임 Bearer 토큰을 가진 인스턴스(`ctx.cbAdmin`/`ctx.cb`)는 cb_pk_ 가 앱 식별용으로만
|
|
5091
|
+
* 실리므로 허용된다.
|
|
5070
5092
|
*
|
|
5071
|
-
* @param appId 발송 대상 앱 ID
|
|
5093
|
+
* @param appId 발송 대상 앱 ID.
|
|
5072
5094
|
* @param memberIds 받는 회원 ID 배열 (UUID).
|
|
5073
5095
|
* @param payload 푸시 내용/옵션.
|
|
5074
5096
|
*
|
|
5075
5097
|
* @example
|
|
5076
5098
|
* ```ts
|
|
5077
|
-
* // ConnectBase Function (
|
|
5078
|
-
* const result = await
|
|
5099
|
+
* // ConnectBase Function (service_role=true) — 시크릿 키 없이 ctx.cbAdmin 으로 발송
|
|
5100
|
+
* const result = await ctx.cbAdmin.push.sendToMembers(ctx.appId, [memberId], {
|
|
5079
5101
|
* title: '새 알림',
|
|
5080
5102
|
* body: '확인해보세요',
|
|
5081
5103
|
* data: { route: '/notifications' },
|
|
@@ -5165,9 +5187,11 @@ interface UpdateVideoRequest {
|
|
|
5165
5187
|
thumbnail_url?: string;
|
|
5166
5188
|
}
|
|
5167
5189
|
interface StreamURLResponse {
|
|
5168
|
-
|
|
5190
|
+
/** 마스터 HLS 플레이리스트 URL (적응형 비트레이트) */
|
|
5191
|
+
master_playlist: string;
|
|
5192
|
+
/** 화질 키 → 화질별 플레이리스트 URL 맵 (예: { "720p": "https://..." }) */
|
|
5193
|
+
qualities: Record<string, string>;
|
|
5169
5194
|
expires_at: string;
|
|
5170
|
-
quality?: string;
|
|
5171
5195
|
}
|
|
5172
5196
|
interface InitUploadResponse {
|
|
5173
5197
|
upload_id: string;
|
|
@@ -5397,6 +5421,35 @@ interface SuperChat {
|
|
|
5397
5421
|
};
|
|
5398
5422
|
created_at: string;
|
|
5399
5423
|
}
|
|
5424
|
+
type SuperChatType = 'super_chat' | 'super_thanks' | 'super_sticker' | 'tip';
|
|
5425
|
+
/** sendSuperChat 옵션 — videoId 또는 liveId 중 하나로 대상을 지정한다. */
|
|
5426
|
+
interface SendSuperChatOptions {
|
|
5427
|
+
/** 대상 영상 ID (videoId 또는 liveId 중 하나 필수) */
|
|
5428
|
+
videoId?: string;
|
|
5429
|
+
/** 대상 라이브 ID */
|
|
5430
|
+
liveId?: string;
|
|
5431
|
+
/** 슈퍼챗 종류 (기본 'super_thanks') */
|
|
5432
|
+
type?: SuperChatType;
|
|
5433
|
+
message?: string;
|
|
5434
|
+
/** ISO 통화 코드 (기본 'USD') */
|
|
5435
|
+
currency?: string;
|
|
5436
|
+
stickerId?: string;
|
|
5437
|
+
}
|
|
5438
|
+
/**
|
|
5439
|
+
* 슈퍼챗 전송 응답. `client_secret` 으로 결제(Stripe PaymentIntent)를 확정해야
|
|
5440
|
+
* 슈퍼챗이 노출된다.
|
|
5441
|
+
*/
|
|
5442
|
+
interface SendSuperChatResponse {
|
|
5443
|
+
super_chat_id: string;
|
|
5444
|
+
client_secret: string;
|
|
5445
|
+
amount: number;
|
|
5446
|
+
currency: string;
|
|
5447
|
+
platform_fee: number;
|
|
5448
|
+
creator_amount: number;
|
|
5449
|
+
display_duration: number;
|
|
5450
|
+
color: string;
|
|
5451
|
+
highlighted: boolean;
|
|
5452
|
+
}
|
|
5400
5453
|
|
|
5401
5454
|
declare class VideoProcessingError extends Error {
|
|
5402
5455
|
video?: Video;
|
|
@@ -5470,8 +5523,9 @@ declare class VideoAPI {
|
|
|
5470
5523
|
*
|
|
5471
5524
|
* @example
|
|
5472
5525
|
* ```ts
|
|
5473
|
-
* const {
|
|
5474
|
-
* videoElement.src =
|
|
5526
|
+
* const { master_playlist, qualities, expires_at } = await cb.video.getStreamUrl(videoId)
|
|
5527
|
+
* videoElement.src = master_playlist // 적응형 비트레이트(HLS.js 등으로 재생)
|
|
5528
|
+
* // 특정 화질 고정이 필요하면 qualities['720p'] 사용
|
|
5475
5529
|
* ```
|
|
5476
5530
|
*/
|
|
5477
5531
|
getStreamUrl(videoId: string, quality?: string): Promise<StreamURLResponse>;
|
|
@@ -5515,15 +5569,18 @@ declare class VideoAPI {
|
|
|
5515
5569
|
*/
|
|
5516
5570
|
unsubscribeChannel(channelId: string): Promise<void>;
|
|
5517
5571
|
/**
|
|
5518
|
-
* Create a playlist
|
|
5572
|
+
* Create a playlist for a channel.
|
|
5573
|
+
* 백엔드는 `POST /v1/public/playlists` 에 body 로 `channel_id` 를 받는다 (AppMember 인증).
|
|
5519
5574
|
*/
|
|
5520
5575
|
createPlaylist(channelId: string, data: CreatePlaylistRequest): Promise<Playlist>;
|
|
5521
5576
|
/**
|
|
5522
|
-
* Get
|
|
5577
|
+
* Get a channel's public playlists.
|
|
5578
|
+
* 백엔드는 `GET /v1/public/playlists/public?channel_id=` 로 공개 플레이리스트를 반환한다.
|
|
5523
5579
|
*/
|
|
5524
5580
|
getPlaylists(channelId: string): Promise<Playlist[]>;
|
|
5525
5581
|
/**
|
|
5526
|
-
* Get playlist items
|
|
5582
|
+
* Get playlist items.
|
|
5583
|
+
* 백엔드는 별도 items 라우트가 없고 `GET /v1/public/playlists/:id` 응답에 items 를 포함한다.
|
|
5527
5584
|
*/
|
|
5528
5585
|
getPlaylistItems(playlistId: string): Promise<PlaylistItem[]>;
|
|
5529
5586
|
/**
|
|
@@ -5597,22 +5654,38 @@ declare class VideoAPI {
|
|
|
5597
5654
|
getMembershipTiers(channelId: string): Promise<MembershipTier[]>;
|
|
5598
5655
|
/**
|
|
5599
5656
|
* Join a membership tier
|
|
5657
|
+
*
|
|
5658
|
+
* @param _channelId 현재 서버에서 무시됩니다 (tier 가 채널을 함의). API 안정성을 위해 시그니처만 유지.
|
|
5659
|
+
* @param tierId 가입할 멤버십 티어 ID
|
|
5600
5660
|
*/
|
|
5601
|
-
joinMembership(
|
|
5661
|
+
joinMembership(_channelId: string, tierId: string): Promise<ChannelMembership>;
|
|
5602
5662
|
/**
|
|
5603
5663
|
* Cancel membership
|
|
5664
|
+
*
|
|
5665
|
+
* @param _channelId 현재 서버에서 무시됩니다. API 안정성을 위해 시그니처만 유지.
|
|
5666
|
+
* @param membershipId 취소할 멤버십 ID
|
|
5604
5667
|
*/
|
|
5605
|
-
cancelMembership(
|
|
5668
|
+
cancelMembership(_channelId: string, membershipId: string): Promise<void>;
|
|
5606
5669
|
/**
|
|
5607
|
-
* Send a super chat
|
|
5670
|
+
* Send a super chat to a channel.
|
|
5671
|
+
*
|
|
5672
|
+
* 백엔드는 `POST /v1/public/super-chats` 에 `channel_id`/`type`/`amount` 를 요구하고,
|
|
5673
|
+
* `video_id` 또는 `live_id` 중 하나로 대상을 지정한다 (AppMember 인증 필수).
|
|
5674
|
+
* 응답의 `client_secret` 으로 결제(Stripe)를 확정해야 슈퍼챗이 노출된다.
|
|
5675
|
+
*
|
|
5676
|
+
* @param channelId 슈퍼챗을 받을 채널 ID
|
|
5677
|
+
* @param amount 금액(최소 단위 정수)
|
|
5678
|
+
* @param options videoId 또는 liveId 중 하나로 대상 지정 + 종류/메시지/통화
|
|
5608
5679
|
*/
|
|
5609
|
-
sendSuperChat(
|
|
5680
|
+
sendSuperChat(channelId: string, amount: number, options?: SendSuperChatOptions): Promise<SendSuperChatResponse>;
|
|
5610
5681
|
/**
|
|
5611
5682
|
* Get super chats for a video
|
|
5612
5683
|
*/
|
|
5613
5684
|
getSuperChats(videoId: string): Promise<SuperChat[]>;
|
|
5614
5685
|
/**
|
|
5615
5686
|
* Get recommended videos
|
|
5687
|
+
*
|
|
5688
|
+
* @deprecated Use getHomeFeed() — 동일한 개인화 피드(`/recommendations/feed`)를 반환합니다.
|
|
5616
5689
|
*/
|
|
5617
5690
|
getRecommendations(limit?: number): Promise<Video[]>;
|
|
5618
5691
|
/**
|
|
@@ -5742,7 +5815,7 @@ declare class GameConfigAPI {
|
|
|
5742
5815
|
/**
|
|
5743
5816
|
* 단일 기능 활성화 — set() 의 편의 wrapper.
|
|
5744
5817
|
*
|
|
5745
|
-
* @example await cb.game.config.enable(appId, "
|
|
5818
|
+
* @example await cb.game.config.enable(appId, "matchqueue_enabled")
|
|
5746
5819
|
*/
|
|
5747
5820
|
enable(appId: string, feature: keyof GameConfig): Promise<GameConfig>;
|
|
5748
5821
|
/**
|
|
@@ -8987,4 +9060,4 @@ declare class ConnectBase {
|
|
|
8987
9060
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
8988
9061
|
}
|
|
8989
9062
|
|
|
8990
|
-
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 GuestMemberSignInResponse, GuestSessionConflictError, 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 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 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 };
|
|
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 GuestMemberSignInResponse, GuestSessionConflictError, 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 };
|