feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes
This commit is contained in:
parent
01ef3293cf
commit
66b6b45ba9
399 changed files with 17828 additions and 11330 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue