connectbase-client 0.11.0 → 0.12.1

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/dist/index.d.mts CHANGED
@@ -18,11 +18,6 @@ interface HttpClientConfig {
18
18
  * 서버 환경에서만 사용 (전체 권한, 절대 노출 금지).
19
19
  */
20
20
  secretKey?: string;
21
- /**
22
- * @deprecated `publicKey` 또는 `secretKey` 를 사용하세요.
23
- * 한동안 하위 호환을 위해 유지됩니다 — 값에 따라 자동으로 publicKey/secretKey 로 라우팅됩니다.
24
- */
25
- apiKey?: string;
26
21
  accessToken?: string;
27
22
  refreshToken?: string;
28
23
  onTokenRefresh?: (tokens: {
@@ -64,14 +59,6 @@ declare class HttpClient {
64
59
  * 현재 설정된 자격증명 (publicKey 또는 secretKey) 반환
65
60
  */
66
61
  getCredential(): string | undefined;
67
- /**
68
- * @deprecated `hasPublicKey()` / `hasSecretKey()` 를 사용하세요.
69
- */
70
- hasApiKey(): boolean;
71
- /**
72
- * @deprecated `getPublicKey()` / `getSecretKey()` / `getCredential()` 을 사용하세요.
73
- */
74
- getApiKey(): string | undefined;
75
62
  /**
76
63
  * Access Token 반환
77
64
  */
@@ -1649,18 +1636,6 @@ interface UpdatePublicKeyResponse {
1649
1636
  expires_at?: string;
1650
1637
  created_at: string;
1651
1638
  }
1652
- /** @deprecated `PublicKeyItem` 을 사용하세요. */
1653
- type ApiKeyItem = PublicKeyItem;
1654
- /** @deprecated `CreatePublicKeyRequest` 을 사용하세요. */
1655
- type CreateApiKeyRequest = CreatePublicKeyRequest;
1656
- /** @deprecated `CreatePublicKeyResponse` 을 사용하세요. */
1657
- type CreateApiKeyResponse = CreatePublicKeyResponse;
1658
- /** @deprecated `FetchPublicKeysResponse` 을 사용하세요. */
1659
- type FetchApiKeysResponse = FetchPublicKeysResponse;
1660
- /** @deprecated `UpdatePublicKeyRequest` 을 사용하세요. */
1661
- type UpdateApiKeyRequest = UpdatePublicKeyRequest;
1662
- /** @deprecated `UpdatePublicKeyResponse` 을 사용하세요. */
1663
- type UpdateApiKeyResponse = UpdatePublicKeyResponse;
1664
1639
 
1665
1640
  /**
1666
1641
  * Public Key 관리 API
@@ -1712,14 +1687,6 @@ declare class PublicKeyAPI {
1712
1687
  * @param keyId Public Key ID
1713
1688
  */
1714
1689
  deletePublicKey(appId: string, keyId: string): Promise<void>;
1715
- /** @deprecated `getPublicKeys` 를 사용하세요. */
1716
- getApiKeys(appId: string): Promise<FetchPublicKeysResponse>;
1717
- /** @deprecated `createPublicKey` 를 사용하세요. */
1718
- createApiKey(appId: string, data: CreatePublicKeyRequest): Promise<CreatePublicKeyResponse>;
1719
- /** @deprecated `updatePublicKey` 를 사용하세요. */
1720
- updateApiKey(appId: string, keyId: string, data: UpdatePublicKeyRequest): Promise<UpdatePublicKeyResponse>;
1721
- /** @deprecated `deletePublicKey` 를 사용하세요. */
1722
- deleteApiKey(appId: string, keyId: string): Promise<void>;
1723
1690
  }
1724
1691
 
1725
1692
  /**
@@ -4401,8 +4368,8 @@ interface GameClientConfig {
4401
4368
  gameServerUrl?: string;
4402
4369
  /** 앱 ID */
4403
4370
  appId?: string;
4404
- /** API Key */
4405
- apiKey?: string;
4371
+ /** Public Key */
4372
+ publicKey?: string;
4406
4373
  /** 액세스 토큰 */
4407
4374
  accessToken?: string;
4408
4375
  /** 클라이언트 ID */
@@ -6038,11 +6005,6 @@ interface ConnectBaseConfig {
6038
6005
  * 서버 환경에서만 사용. 전체 권한 — 절대 노출 금지.
6039
6006
  */
6040
6007
  secretKey?: string;
6041
- /**
6042
- * @deprecated `publicKey` (cb_pk_) 또는 `secretKey` (cb_sk_) 를 사용하세요.
6043
- * 한동안 하위 호환 alias 로 작동합니다 — prefix 에 따라 자동 라우팅됩니다.
6044
- */
6045
- apiKey?: string;
6046
6008
  /**
6047
6009
  * 토큰이 갱신될 때 호출되는 콜백
6048
6010
  */
@@ -6127,9 +6089,6 @@ declare class ConnectBase {
6127
6089
  */
6128
6090
  readonly publicKey: PublicKeyAPI;
6129
6091
  /**
6130
- * @deprecated `publicKey` 를 사용하세요. 동일한 인스턴스를 가리키는 하위 호환 별칭입니다.
6131
- */
6132
- readonly apiKey: PublicKeyAPI;
6133
6092
  /**
6134
6093
  * 서버리스 함수 API
6135
6094
  */
@@ -6209,4 +6168,4 @@ declare class ConnectBase {
6209
6168
  updateConfig(config: Partial<ConnectBaseConfig>): void;
6210
6169
  }
6211
6170
 
6212
- export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type ApiKeyItem, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchApiKeysResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateApiKeyRequest, type UpdateApiKeyResponse, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
6171
+ export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
package/dist/index.d.ts CHANGED
@@ -18,11 +18,6 @@ interface HttpClientConfig {
18
18
  * 서버 환경에서만 사용 (전체 권한, 절대 노출 금지).
19
19
  */
20
20
  secretKey?: string;
21
- /**
22
- * @deprecated `publicKey` 또는 `secretKey` 를 사용하세요.
23
- * 한동안 하위 호환을 위해 유지됩니다 — 값에 따라 자동으로 publicKey/secretKey 로 라우팅됩니다.
24
- */
25
- apiKey?: string;
26
21
  accessToken?: string;
27
22
  refreshToken?: string;
28
23
  onTokenRefresh?: (tokens: {
@@ -64,14 +59,6 @@ declare class HttpClient {
64
59
  * 현재 설정된 자격증명 (publicKey 또는 secretKey) 반환
65
60
  */
66
61
  getCredential(): string | undefined;
67
- /**
68
- * @deprecated `hasPublicKey()` / `hasSecretKey()` 를 사용하세요.
69
- */
70
- hasApiKey(): boolean;
71
- /**
72
- * @deprecated `getPublicKey()` / `getSecretKey()` / `getCredential()` 을 사용하세요.
73
- */
74
- getApiKey(): string | undefined;
75
62
  /**
76
63
  * Access Token 반환
77
64
  */
@@ -1649,18 +1636,6 @@ interface UpdatePublicKeyResponse {
1649
1636
  expires_at?: string;
1650
1637
  created_at: string;
1651
1638
  }
1652
- /** @deprecated `PublicKeyItem` 을 사용하세요. */
1653
- type ApiKeyItem = PublicKeyItem;
1654
- /** @deprecated `CreatePublicKeyRequest` 을 사용하세요. */
1655
- type CreateApiKeyRequest = CreatePublicKeyRequest;
1656
- /** @deprecated `CreatePublicKeyResponse` 을 사용하세요. */
1657
- type CreateApiKeyResponse = CreatePublicKeyResponse;
1658
- /** @deprecated `FetchPublicKeysResponse` 을 사용하세요. */
1659
- type FetchApiKeysResponse = FetchPublicKeysResponse;
1660
- /** @deprecated `UpdatePublicKeyRequest` 을 사용하세요. */
1661
- type UpdateApiKeyRequest = UpdatePublicKeyRequest;
1662
- /** @deprecated `UpdatePublicKeyResponse` 을 사용하세요. */
1663
- type UpdateApiKeyResponse = UpdatePublicKeyResponse;
1664
1639
 
1665
1640
  /**
1666
1641
  * Public Key 관리 API
@@ -1712,14 +1687,6 @@ declare class PublicKeyAPI {
1712
1687
  * @param keyId Public Key ID
1713
1688
  */
1714
1689
  deletePublicKey(appId: string, keyId: string): Promise<void>;
1715
- /** @deprecated `getPublicKeys` 를 사용하세요. */
1716
- getApiKeys(appId: string): Promise<FetchPublicKeysResponse>;
1717
- /** @deprecated `createPublicKey` 를 사용하세요. */
1718
- createApiKey(appId: string, data: CreatePublicKeyRequest): Promise<CreatePublicKeyResponse>;
1719
- /** @deprecated `updatePublicKey` 를 사용하세요. */
1720
- updateApiKey(appId: string, keyId: string, data: UpdatePublicKeyRequest): Promise<UpdatePublicKeyResponse>;
1721
- /** @deprecated `deletePublicKey` 를 사용하세요. */
1722
- deleteApiKey(appId: string, keyId: string): Promise<void>;
1723
1690
  }
1724
1691
 
1725
1692
  /**
@@ -4401,8 +4368,8 @@ interface GameClientConfig {
4401
4368
  gameServerUrl?: string;
4402
4369
  /** 앱 ID */
4403
4370
  appId?: string;
4404
- /** API Key */
4405
- apiKey?: string;
4371
+ /** Public Key */
4372
+ publicKey?: string;
4406
4373
  /** 액세스 토큰 */
4407
4374
  accessToken?: string;
4408
4375
  /** 클라이언트 ID */
@@ -6038,11 +6005,6 @@ interface ConnectBaseConfig {
6038
6005
  * 서버 환경에서만 사용. 전체 권한 — 절대 노출 금지.
6039
6006
  */
6040
6007
  secretKey?: string;
6041
- /**
6042
- * @deprecated `publicKey` (cb_pk_) 또는 `secretKey` (cb_sk_) 를 사용하세요.
6043
- * 한동안 하위 호환 alias 로 작동합니다 — prefix 에 따라 자동 라우팅됩니다.
6044
- */
6045
- apiKey?: string;
6046
6008
  /**
6047
6009
  * 토큰이 갱신될 때 호출되는 콜백
6048
6010
  */
@@ -6127,9 +6089,6 @@ declare class ConnectBase {
6127
6089
  */
6128
6090
  readonly publicKey: PublicKeyAPI;
6129
6091
  /**
6130
- * @deprecated `publicKey` 를 사용하세요. 동일한 인스턴스를 가리키는 하위 호환 별칭입니다.
6131
- */
6132
- readonly apiKey: PublicKeyAPI;
6133
6092
  /**
6134
6093
  * 서버리스 함수 API
6135
6094
  */
@@ -6209,4 +6168,4 @@ declare class ConnectBase {
6209
6168
  updateConfig(config: Partial<ConnectBaseConfig>): void;
6210
6169
  }
6211
6170
 
6212
- export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type ApiKeyItem, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchApiKeysResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateApiKeyRequest, type UpdateApiKeyResponse, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
6171
+ export { AIAPI, type AIChatRequest, type AIChatResponse, type AIMessage, type AISource, type AIStreamChunk, type AITool, type AIToolCall, type AIToolEvent, type AckMessagesRequest, type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type AppStatsResponse, type ArchivePolicy, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type ConsumeMessagesResponse, type ConsumeOptions, type CopyTableRequest, type CopyTableResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateDocumentRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateGeoIndexRequest, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreatePublicKeyRequest, type CreatePublicKeyResponse, type CreateRelationRequest, type CreateSearchIndexRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type CreateVideoStorageRequest, type DailyReport, type DataItem, type DataType, type DatabaseChange, type DatabaseChangeMessage, type DatabaseChangeType, type DatabasePresenceState, type DatabaseRealtimeConnectOptions, type DatabaseRealtimeFilter, type DatabaseRealtimeHandlers, type DatabaseRealtimeSubscription, type DatabaseSnapshot, type DatabaseSnapshotMessage, type DatabaseSubscribeOptions, type DeleteWhereResponse, type DeviceInfo, type DocumentResponse, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type ExportDataRequest, type ExportDataResponse, type FetchDataResponse, type FetchFilesResponse, type FetchPublicKeysResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoIndex, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type ImportDataRequest, type ImportDataResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type KnowledgeSearchRequest, type KnowledgeSearchResponse, type KnowledgeSearchResult, type LeaderboardEntry, type LifecyclePolicy, type ListBillingKeysResponse, type ListDocumentsResponse, type ListPageMetasOptions, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchResult, type MatchmakingTicket, type MemberInfoResponse, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MigrateDataRequest, type MigrateDataResponse, type MoveFileRequest, type NackMessageRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PartyInfo, type PartyInvite, type PartyMember, type PauseSubscriptionRequest, type PaymentDetail, type PaymentProvider, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type PlayerStats, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PresenceChangeHandler, type PresenceInfo, type PresenceSetOptions, type PresenceStatus, type PresenceStatusResult, type PublicKeyItem, type PublishBatchRequest, type PublishBatchResponse, type PublishMessageRequest, type PublishMessageResponse, type PushPlatform, type QualityProgress, type QueryOptions, type QueueInfoResponse, type QueueMessage, type ReadReceiptHandler, type ReadReceiptInfo, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type ReplayHighlight, type ReplayInfo, type ReplayPlayerInfo, type RestoreBackupRequest, type RestoreBackupResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchIndex, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type SpectatorInfo, type SpectatorPlayerState, type SpectatorState, type StateChange, type StateChangeHandler, type StorageUploadOptions, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamToolCallCallback, type StreamToolResultCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type TypingChangeHandler, type TypingInfo, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateCustomDataRequest, type UpdateCustomDataResponse, type UpdateDataRequest, type UpdateLobbyRequest, type UpdatePublicKeyRequest, type UpdatePublicKeyResponse, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UpdateVideoStorageRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoStorage, type VideoStorageListResponse, type VideoVisibility, type VoiceChannel, type VoiceMember, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
package/dist/index.js CHANGED
@@ -55,25 +55,7 @@ var HttpClient = class {
55
55
  constructor(config) {
56
56
  this.isRefreshing = false;
57
57
  this.refreshPromise = null;
58
- let publicKey = config.publicKey;
59
- let secretKey = config.secretKey;
60
- if (config.apiKey && !publicKey && !secretKey) {
61
- if (config.apiKey.startsWith("cb_sk_")) {
62
- secretKey = config.apiKey;
63
- } else {
64
- publicKey = config.apiKey;
65
- }
66
- if (typeof console !== "undefined") {
67
- console.warn(
68
- "[connectbase-client] `apiKey` \uC635\uC158\uC740 deprecated \uC785\uB2C8\uB2E4. `publicKey` (cb_pk_) \uB610\uB294 `secretKey` (cb_sk_) \uB97C \uC0AC\uC6A9\uD558\uC138\uC694."
69
- );
70
- }
71
- }
72
- this.config = {
73
- ...config,
74
- publicKey,
75
- secretKey
76
- };
58
+ this.config = { ...config };
77
59
  }
78
60
  updateConfig(config) {
79
61
  this.config = { ...this.config, ...config };
@@ -116,18 +98,6 @@ var HttpClient = class {
116
98
  getCredential() {
117
99
  return this.config.publicKey ?? this.config.secretKey;
118
100
  }
119
- /**
120
- * @deprecated `hasPublicKey()` / `hasSecretKey()` 를 사용하세요.
121
- */
122
- hasApiKey() {
123
- return !!this.getCredential();
124
- }
125
- /**
126
- * @deprecated `getPublicKey()` / `getSecretKey()` / `getCredential()` 을 사용하세요.
127
- */
128
- getApiKey() {
129
- return this.getCredential();
130
- }
131
101
  /**
132
102
  * Access Token 반환
133
103
  */
@@ -200,7 +170,6 @@ var HttpClient = class {
200
170
  const credential = this.getCredential();
201
171
  if (credential) {
202
172
  headers.set("X-Public-Key", credential);
203
- headers.set("X-API-Key", credential);
204
173
  }
205
174
  if (!config?.skipAuth && this.config.accessToken) {
206
175
  let token = this.config.accessToken;
@@ -584,7 +553,7 @@ var DatabaseAPI = class {
584
553
  * API Key 인증 시 /v1/public 접두사 반환
585
554
  */
586
555
  getPublicPrefix() {
587
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
556
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
588
557
  }
589
558
  // ============ Table Methods ============
590
559
  /**
@@ -1581,7 +1550,7 @@ var StorageAPI = class {
1581
1550
  * API Key 인증 시 /v1/public 접두사 반환
1582
1551
  */
1583
1552
  getPublicPrefix() {
1584
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
1553
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
1585
1554
  }
1586
1555
  /**
1587
1556
  * 파일 목록 조회
@@ -1945,23 +1914,6 @@ var PublicKeyAPI = class {
1945
1914
  async deletePublicKey(appId, keyId) {
1946
1915
  await this.http.delete(`/v1/apps/${appId}/public-keys/${keyId}`);
1947
1916
  }
1948
- // ── Deprecated method aliases (하위 호환) ──────────────────────────
1949
- /** @deprecated `getPublicKeys` 를 사용하세요. */
1950
- async getApiKeys(appId) {
1951
- return this.getPublicKeys(appId);
1952
- }
1953
- /** @deprecated `createPublicKey` 를 사용하세요. */
1954
- async createApiKey(appId, data) {
1955
- return this.createPublicKey(appId, data);
1956
- }
1957
- /** @deprecated `updatePublicKey` 를 사용하세요. */
1958
- async updateApiKey(appId, keyId, data) {
1959
- return this.updatePublicKey(appId, keyId, data);
1960
- }
1961
- /** @deprecated `deletePublicKey` 를 사용하세요. */
1962
- async deleteApiKey(appId, keyId) {
1963
- return this.deletePublicKey(appId, keyId);
1964
- }
1965
1917
  };
1966
1918
 
1967
1919
  // src/api/functions.ts
@@ -1973,7 +1925,7 @@ var FunctionsAPI = class {
1973
1925
  * API Key 인증 시 /v1/public 접두사 반환
1974
1926
  */
1975
1927
  getPublicPrefix() {
1976
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
1928
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
1977
1929
  }
1978
1930
  /**
1979
1931
  * 서버리스 함수 실행
@@ -2703,14 +2655,14 @@ var RealtimeAPI = class {
2703
2655
  url = `${wsUrl}/v1/realtime/auth?access_token=${encodeURIComponent(this.options.accessToken)}&client_id=${this.clientId}`;
2704
2656
  this.log("Using accessToken authentication");
2705
2657
  } else {
2706
- const apiKey = this.http.getApiKey();
2707
- if (!apiKey) {
2658
+ const publicKey = this.http.getPublicKey();
2659
+ if (!publicKey) {
2708
2660
  const error = new Error("API Key or accessToken is required for realtime connection");
2709
2661
  this.log("Connection failed: no API Key or accessToken");
2710
2662
  reject(error);
2711
2663
  return;
2712
2664
  }
2713
- url = `${wsUrl}/v1/realtime/auth?api_key=${encodeURIComponent(apiKey)}&client_id=${this.clientId}`;
2665
+ url = `${wsUrl}/v1/realtime/auth?public_key=${encodeURIComponent(publicKey)}&client_id=${this.clientId}`;
2714
2666
  this.log("Using API Key authentication");
2715
2667
  }
2716
2668
  if (this.userId) {
@@ -3224,13 +3176,13 @@ var WebRTCAPI = class {
3224
3176
  }
3225
3177
  buildWebSocketUrl() {
3226
3178
  let wsBase = this.webrtcUrl.replace("https://", "wss://").replace("http://", "ws://");
3227
- const apiKey = this.http.getApiKey();
3179
+ const publicKey = this.http.getPublicKey();
3228
3180
  const accessToken = this.http.getAccessToken();
3229
3181
  let authParam = "";
3230
3182
  if (accessToken) {
3231
3183
  authParam = `access_token=${encodeURIComponent(accessToken)}`;
3232
- } else if (apiKey) {
3233
- authParam = `api_key=${encodeURIComponent(apiKey)}`;
3184
+ } else if (publicKey) {
3185
+ authParam = `public_key=${encodeURIComponent(publicKey)}`;
3234
3186
  }
3235
3187
  if (!this.appId) {
3236
3188
  throw new Error("WebRTC \uC5F0\uACB0\uC5D0\uB294 appId\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. ConnectBase \uCD08\uAE30\uD654 \uC2DC appId\uB97C \uC124\uC815\uD558\uC138\uC694.");
@@ -4063,7 +4015,7 @@ var PaymentAPI = class {
4063
4015
  * API Key 인증 시 /v1/public 접두사 반환
4064
4016
  */
4065
4017
  getPublicPrefix() {
4066
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
4018
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
4067
4019
  }
4068
4020
  /**
4069
4021
  * 결제 준비
@@ -4189,7 +4141,7 @@ var SubscriptionAPI = class {
4189
4141
  * API Key 인증 시 /v1/public 접두사 반환
4190
4142
  */
4191
4143
  getPublicPrefix() {
4192
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
4144
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
4193
4145
  }
4194
4146
  // =====================
4195
4147
  // Billing Key APIs
@@ -4496,7 +4448,7 @@ var PushAPI = class {
4496
4448
  * API Key 인증 시 /v1/public 접두사 반환
4497
4449
  */
4498
4450
  getPublicPrefix() {
4499
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
4451
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
4500
4452
  }
4501
4453
  // ============ Device Registration ============
4502
4454
  /**
@@ -4878,13 +4830,13 @@ var VideoAPI = class {
4878
4830
  return "https://video.connectbase.world";
4879
4831
  }
4880
4832
  getPublicPrefix() {
4881
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
4833
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
4882
4834
  }
4883
4835
  async videoFetch(method, path, body) {
4884
4836
  const headers = {};
4885
- const apiKey = this.http.getApiKey();
4886
- if (apiKey) {
4887
- headers["X-API-Key"] = apiKey;
4837
+ const publicKey = this.http.getPublicKey();
4838
+ if (publicKey) {
4839
+ headers["X-Public-Key"] = publicKey;
4888
4840
  }
4889
4841
  const accessToken = this.http.getAccessToken();
4890
4842
  if (accessToken) {
@@ -5655,8 +5607,8 @@ var GameRoom = class {
5655
5607
  if (roomId) {
5656
5608
  params.set("room_id", roomId);
5657
5609
  }
5658
- if (this.config.apiKey) {
5659
- params.set("api_key", this.config.apiKey);
5610
+ if (this.config.publicKey) {
5611
+ params.set("public_key", this.config.publicKey);
5660
5612
  }
5661
5613
  if (this.config.accessToken) {
5662
5614
  params.set("token", this.config.accessToken);
@@ -5877,7 +5829,7 @@ var GameAPI = class {
5877
5829
  ...config,
5878
5830
  gameServerUrl: this.gameServerUrl.replace(/^http/, "ws"),
5879
5831
  appId: this.appId,
5880
- apiKey: this.http.getApiKey(),
5832
+ publicKey: this.http.getPublicKey(),
5881
5833
  accessToken: this.http.getAccessToken()
5882
5834
  });
5883
5835
  }
@@ -6522,9 +6474,9 @@ var GameAPI = class {
6522
6474
  }
6523
6475
  getHeaders() {
6524
6476
  const headers = {};
6525
- const apiKey = this.http.getApiKey();
6526
- if (apiKey) {
6527
- headers["X-API-Key"] = apiKey;
6477
+ const publicKey = this.http.getPublicKey();
6478
+ if (publicKey) {
6479
+ headers["X-Public-Key"] = publicKey;
6528
6480
  }
6529
6481
  const accessToken = this.http.getAccessToken();
6530
6482
  if (accessToken) {
@@ -6543,7 +6495,7 @@ var AdsAPI = class {
6543
6495
  * API Key 인증 시 /v1/public 접두사 반환
6544
6496
  */
6545
6497
  getPublicPrefix() {
6546
- return this.http.hasApiKey() ? "/v1/public" : "/v1";
6498
+ return this.http.hasPublicKey() ? "/v1/public" : "/v1";
6547
6499
  }
6548
6500
  /**
6549
6501
  * AdSense 연결 상태 확인
@@ -7394,8 +7346,8 @@ var WebTransportTransport = class {
7394
7346
  const httpsUrl = baseUrl.replace(/^ws/, "http").replace(/^http:/, "https:");
7395
7347
  const params = new URLSearchParams();
7396
7348
  params.set("client_id", this.config.clientId);
7397
- if (this.config.apiKey) {
7398
- params.set("api_key", this.config.apiKey);
7349
+ if (this.config.publicKey) {
7350
+ params.set("public_key", this.config.publicKey);
7399
7351
  }
7400
7352
  if (this.config.accessToken) {
7401
7353
  params.set("token", this.config.accessToken);
@@ -7519,8 +7471,8 @@ var WebSocketTransport = class {
7519
7471
  const wsUrl = baseUrl.replace(/^http/, "ws");
7520
7472
  const params = new URLSearchParams();
7521
7473
  params.set("client_id", this.config.clientId);
7522
- if (this.config.apiKey) {
7523
- params.set("api_key", this.config.apiKey);
7474
+ if (this.config.publicKey) {
7475
+ params.set("public_key", this.config.publicKey);
7524
7476
  }
7525
7477
  if (this.config.accessToken) {
7526
7478
  params.set("token", this.config.accessToken);
@@ -8017,7 +7969,6 @@ var ConnectBase = class {
8017
7969
  baseUrl: config.baseUrl || DEFAULT_BASE_URL,
8018
7970
  publicKey: config.publicKey,
8019
7971
  secretKey: config.secretKey,
8020
- apiKey: config.apiKey,
8021
7972
  onTokenRefresh: config.onTokenRefresh,
8022
7973
  onAuthError: config.onAuthError,
8023
7974
  onTokenExpired: config.onTokenExpired
@@ -8027,7 +7978,6 @@ var ConnectBase = class {
8027
7978
  this.database = new DatabaseAPI(this.http);
8028
7979
  this.storage = new StorageAPI(this.http);
8029
7980
  this.publicKey = new PublicKeyAPI(this.http);
8030
- this.apiKey = this.publicKey;
8031
7981
  this.functions = new FunctionsAPI(this.http);
8032
7982
  this.realtime = new RealtimeAPI(this.http, config.socketUrl || DEFAULT_SOCKET_URL);
8033
7983
  this.webrtc = new WebRTCAPI(this.http, config.webrtcUrl || DEFAULT_WEBRTC_URL, config.appId);