?
VoiceSessionListPage
TypeOne page of the call log: a batch of summaries and a cursor.
What listSessions returns: a page of session summaries plus a nextCursor. Pass the cursor back to listSessions to page through history, and stop when it comes back null.
VoiceSessionListPage.ts
interface VoiceSessionListPage { sessions: VoiceSessionSummary[] nextCursor: string | null }
Fields
sessions
VoiceSessionSummary[]
This page of past-session summaries, newest first.
nextCursor
string | null
Pass to listSessions for the next page, or null when there are no more.
Follow the cursor
let cursor: string | null | undefined; do { const page: VoiceSessionListPage = await voice.listSessions(cursor ?? undefined); render(page.sessions); cursor = page.nextCursor; } while (cursor);