feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes

This commit is contained in:
Yun Chan 2026-11-14 11:51:41 +09:00
parent 01ef3293cf
commit 66b6b45ba9
399 changed files with 17828 additions and 11330 deletions

View file

@ -1,3 +1,5 @@
import { isRecord } from './core-contract.generated.ts'
export const PUSH_EVENT_TYPES = [
'transcription.completed',
'team.invite.created',
@ -66,9 +68,6 @@ const REQUEST_TIMEOUT_MS = 10_000
let cachedAccessToken: FcmAccessToken | null = null
let pendingAccessToken: { credentialIdentity: string; promise: Promise<string> } | null = null
function isRecord(value: unknown): value is Record<string, unknown> {
return value !== null && typeof value === 'object' && !Array.isArray(value)
}
function isPushEventType(value: unknown): value is PushEventType {
return typeof value === 'string' && (PUSH_EVENT_TYPES as readonly string[]).includes(value)