Wire types (@sloppyvoice/sdk/wire): the JSON objects, constants, error registries and event payloads of every spec document, one file per document, plus the composed EventMap (03 §11.3).

A few names are defined by two documents. Each is exported once here under its plain name, from the document that owns it, and the other definition is exported under a prefixed alias:

Name Plain name from Alias of the other
AccountKind, AccountSecurity, DevicePlatform 05 (accounts.ts) CommunityAccountKind, CommunityAccountSecurity (09), IdentityDevicePlatform (07)
MediaProfile, MEDIA_PROFILES, SourceId, SOURCE_IDS, VideoRoute, AudioBlockedBy 15 (calls.ts) MediaWireProfile, MEDIA_PROFILE_IDS, MediaSourceId, MEDIA_SOURCE_IDS, MediaVideoRoute, MediaAudioBlockedBy (16–18)
ResyncReason 03 (transport.ts) MlsResyncReason (13)
RingEndReason 15 (calls.ts) NotifyRingEndReason (19)
import { … } from '@sloppyvoice/sdk/wire'

Interfaces

CollectionPage interface

A collection page (03 §13.2). nextCursor is null at the end.

interface CollectionPage<T>

items

items: T[]

The page, in the stable order the owner defines.

nextCursor

nextCursor: string | null

The cursor for the next page, or null at the end. Opaque: never build, change or parse it.

total?

total?: number

Exact or estimated total, where the owner defines one.

Source: wire/transport.ts:655

TalkState interface

The TalkState the audio engine exports to the user interface (16 §7.10).

interface TalkState

state

state: TalkStateState

reason

reason: TalkStateReason | null

null where 16 §7.10 shows "—" or null.

blockedBy

blockedBy: AudioBlockedBy | null

Set only when reason is not_allowed; null otherwise.

Source: wire/media.ts:379

TimelinePage interface

A timeline page (03 §13.1). items are always in ascending seq order. headSeq never advances the client's stream position (03 §2.8).

interface TimelinePage<T>

items

items: T[]

Timeline items, ascending by seq, whichever direction was asked for.

hasMore

hasMore: boolean

With before (or neither): older items exist. With after: newer items exist up to headSeq.

headSeq

headSeq: number

The stream's head when the page was read (required by 03 §13.1).

Source: wire/transport.ts:644

Types

LeaseState type

The client's own lease state (16 §12.3).

type LeaseState = "covered" | "excluded" | "stale"

Source: wire/media.ts:357

MuteReason type

Why userMuted was last set (16 §7.2). user also covers the lease-block mute of 16 §7.8.

type MuteReason = "user" | "rejoin" | "interruption"

Source: wire/media.ts:351

Re-exports

Also exported from this entry point; documented where they are defined.