Types Reference
All TypeScript types exported by the Mite SDK.
MiteConfig
Configuration for the Mite instance.
interface MiteConfig {
apiKey?: string
endpoint?: string
timeout?: number
retries?: number
anonymousId?: string
identityStorage?: MiteIdentityStorage | MiteMMKVLikeStorage
identificationOptOut?: boolean
}MiteIdentityStorage
Storage adapter interface (compatible with AsyncStorage):
interface MiteIdentityStorage {
getItem(key: string): string | null | Promise<string | null>
setItem(key: string, value: string): void | Promise<void>
removeItem(key: string): void | Promise<void>
}MiteMMKVLikeStorage
Storage interface for react-native-mmkv. You can pass an MMKV instance directly — the SDK wraps it automatically.
interface MiteMMKVLikeStorage {
getString(key: string): string | undefined
set(key: string, value: string): void
delete(key: string): void
}Release
interface Release {
id: string
version: string
versionCode: number
platform: 'ios' | 'android' | 'all'
notes?: string
releasedAt?: number
createdAt: number
}FeatureRequest
interface FeatureRequest {
id: string
title: string
description?: string
status: FeatureRequestStatus
author_name?: string
author_email?: string
vote_count: number
createdAt: number
}
type FeatureRequestStatus = 'OPEN' | 'IN_PROGRESS' | 'COMPLETED' | 'CLOSED'SubmitBugReportPayload
interface SubmitBugReportPayload {
title: string
description?: string
steps_to_reproduce?: string
expected_behavior?: string
actual_behavior?: string
priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL'
attachments?: File[]
}IdentifyUserPayload
interface IdentifyUserPayload {
user_identifier: string
email?: string
name?: string
metadata?: Record<string, string>
}CreateFeatureRequestPayload
interface CreateFeatureRequestPayload {
title: string
description?: string
author_name?: string
author_email?: string
}VoteFeatureRequestPayload
interface VoteFeatureRequestPayload {
feature_request_id: string
voter_email: string
}