types: fix circular import

closes #1746
This commit is contained in:
Rajeh Taher
2025-09-07 14:47:19 +03:00
parent 538d3e4da7
commit 076daae89d
4 changed files with 13 additions and 7 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
import { proto } from '../../WAProto/index.js'
import { makeLibSignalRepository } from '../Signal/libsignal'
import type { AuthenticationState, MediaType, SocketConfig, WAVersion } from '../Types'
import type { AuthenticationState, SocketConfig, WAVersion } from '../Types'
import { Browsers } from '../Utils'
import logger from '../Utils/logger'
import defaultVersion from './baileys-version.json' with { type: 'json' }
@@ -105,6 +105,8 @@ export const MEDIA_HKDF_KEY_MAPPING = {
'biz-cover-photo': 'Image'
}
export type MediaType = keyof typeof MEDIA_HKDF_KEY_MAPPING
export const MEDIA_KEYS = Object.keys(MEDIA_PATH_MAP) as MediaType[]
export const MIN_PREKEY_COUNT = 5