462 objects and 425 enums. Types in field tables link here.

00 Overview, architecture and conventions

LabelledSignature other

SignLabelled(key, label, content) = Ed25519-Sign(key, "sv1 sig" || 0x00 || label || 0x00 || content); content is a deterministic length-prefixed binary encoding (never JSON). Labels: sealed, history-share, media-attest; history-link retired. Registry owned by 04.

Specification
00 §7.14

PostMessageRequest object

Body of POST {base}/v1/contexts/{ctx}/messages (owned by 11/14). Insecure contexts carry content; secure contexts carry sealed whose plaintext is the same content JSON.

Specification
00 §7.4
Fields
NameTypeRequiredMeaning and constraints
miduuidv7YesMessage ID
client-generated; idempotency key
contentMessageContentNoPlain content
insecure contexts
sealedSealedMessageNoSealed content
secure contexts
mentionsarray<string>NoCleartext mention hint (D-063); shown in secure example
canonical addresses
mentionAllbooleanNoCleartext mention-all hint (D-063)

ProblemDetails object

RFC 9457 problem object for HTTP errors (application/problem+json) and WS errors (in d).

Specification
00 §7.9
Fields
NameTypeRequiredMeaning and constraints
typestringYesProblem type URI
urn:sloppyv:error:<code>
codestringYesRegistered code
<area>.<reason>
titlestringYesShort English summary; clients don't parse it
statusintegerYesHTTP status
detailstringNoHuman-readable detail
retryablebooleanYesWhether the same request may succeed later
retryAfterMsintegerNoWhen to retry
ms
userActionUserActionYesOne-tap fix the client renders without parsing text
dataobjectNoCode-specific structured data, defined by the code's owner

PushGatewayRequestToken jws

typ sv-push+jwt, max lifetime 60 s. Owned by 19.

Signed by
home server key
Specification
00 §7.13

SFrameKID other

KID = (context_id << (S + E)) + (leaf_index << E) + (epoch mod 2^E), E = 4, S = 16; context_id = (joinNonce << 4) | sourceId; joinNonce fresh random 32-bit per encryptor instance. Owned by 18.

Specification
00 §6 HP-5

AccountSecurityState (IdentityState sec) enum

Specification
00 §2.3, §4.1
Values
ValueMeaning
insecureNo account keys
secureHas identity key

AccountState (named values) enum

Specification
00 §4.2 SM-1, SM-3
Values
ValueMeaning
upgrade_requiredAccount homed on a secure server that hasn't turned on encryption; can only turn on encryption or delete itself (SM-1, SM-3; full state set in 05 §8.6)

AuthorizationScheme enum

Specification
00 §7.3
Values
ValueMeaning
Bearer <token>home and remote session tokens
Bot <token>bot tokens
Bearer <sv-s2s+jwt>server-to-server endpoints

CallEndReason (named values) enum

Specification
00 §6 HP-12
Values
ValueMeaning
security_upgradedActive call ended by a channel upgrade; clients rejoin as a secure call automatically, keeping mic and PTT state

CallSeatState (named values) enum

Specification
00 §6 HP-13
Values
ValueMeaning
reconnectingSeat held for 30 s after an unexpected drop; others see a badge and hear no leave/join sound

CommunityChannelMembershipState enum

Specification
00 §2.6
Values
ValueMeaning
active
pending
needs_encryptionInsecure account in a context that became secure; keeps pre-upgrade reads
banned
left

ConformanceClass enum

Specification
00 §1.5
Values
ValueMeaning
Server
SFU-capable server
Full client
Web client
Bot client
Push gateway

DelegationEvidence enum

Specification
00 §6 HP-7
Values
ValueMeaning
dnssecTXT answer validated under DNSSEC
same-siteBase-URL host is the queried domain or shares its registrable domain
wellknownhttps://<fqdn>/.well-known/sloppyv agrees with TXT
dns-onlyNo further authentication

DevicePlatform (plat) enum

Specification
00 §6 HP-1
Values
ValueMeaning
desktop
web
ios
android
bot

DmCloseReason (named values) enum

Specification
00 §4.12.3
Values
ValueMeaning
host_secureDM closed because its hosting server is a secure server and the DM is or became insecure; marker K5 (12 §13.1)

DmParticipationState enum

Specification
00 §2.6
Values
ValueMeaning
reserved
pending
active
declined
left
removed

DmState (named values) enum

Values
ValueMeaning
encryption_pendingInsecure 1:1 DM whose homes are both secure servers: stays in place, refuses content and calls until the insecure participant turns on encryption (12 §13.1)

FeatureName enum

Specification
00 §7.8
Values
ValueMeaning
voice-dc/1mandatory
video-dc/1mandatory
sfu-rtp/1optional
webhooksoptional, insecure contexts only

GateCard enum

Specification
00 §4.12.2
Values
ValueMeaning
G1security.account_required or remote security.upgrade_required -> Turn on encryption
G2security.device_not_enrolled -> Set up encryption on this device

GatewayPolicy (named values) enum

Specification
00 §2.2
Values
ValueMeaning
anyDefault: servers deliver to any push gateway (D-093); owned by 19

HkdfHmacLabel enum

Specification
00 §7.15
Values
ValueMeaning
sv1 ekidEpoch key ID from K_hist, 8 bytes (14)
sv1 msgK_msg from K_hist and mid (14)
sv1 kcKey commitment HMAC label (14)
sv1 vaultVault record keys from K_vault (08)
sv1 vault idVault record IDs (08)
sv1 backupKeyBackup wrap key from the Argon2id output (08)
sv1 pairPairing payload key from the CPace session key (08)
sv1 dm1:1 DM context ID hash prefix (12)

HpkeInfoLabel enum

Specification
00 §7.15
Values
ValueMeaning
sv1 vault grantVaultKeyGrants (08)
sv1 history-shareK_share of a HistoryShare (14)

LabelledSignatureLabel enum

Specification
00 §7.14
Values
ValueMeaning
sealed14
history-share14
media-attest18
history-linkreserved and retired; MUST NOT be reused

LockIndicator enum

Specification
00 §4.12.6
Values
ValueMeaning
closedContext advertised secure and client holds current MLS state
open"Not encrypted", secure account on insecure context
gatedOutline "Encrypted" lock in lists/previews/gate card for contexts the user can't open

MessageCarrier (named values) enum

Specification
00 §7.4
Values
ValueMeaning
plainExample value of message.created d.carrier for insecure content; full set owned by 11

NotifyKind (named values) enum

Specification
00 §8 F7
Values
ValueMeaning
call_ringDM call ring sent in notify.event (F7); full set owned by 19

RetiredLabel enum

Specification
00 §7.14, §7.15
Values
ValueMeaning
sv1 linkWithdrawn automatic history handover; reserved, MUST NOT be reused
sv1 anchorWithdrawn automatic history handover; reserved, MUST NOT be reused
history-linkRetired labelled-signature label; MUST NOT be reused

SecurityErrorScope (security.account_required data.scope) enum

Specification
00 §4.11
Values
ValueMeaning
communitywith data.domain
channelwith data.ctx (channel, DM or group DM); unknown scope treated as channel

SecurityMode enum

Specification
00 §4.1
Values
ValueMeaning
insecureServer can read content; no keys used
secureEnd-to-end encrypted context

ServerKeyPurpose enum

Specification
00 §6 HP-7
Values
ValueMeaning
sign
mls-external-sender

ServerKeyStatus enum

Specification
00 §6 HP-7
Values
ValueMeaning
nextPublished at least 25 h before first use
active
retiredKept published at least 7 days
revokedCompromised, with revocation time

SFrameSourceId enum

Specification
00 §6 HP-5
Values
ValueMeaning
0microphone
1screen video
2screen or application sound
3webcam
4-15reserved

StreamName (envelope ctx) enum

Specification
00 §7.4, §7.6
Values
ValueMeaning
ch:<UUIDv7>channel
dm:<22-char base64url>1:1 DM
gdm:<UUIDv7>group DM
meaccount-level events
communitycommunity-level events

TypeAndErrorArea (area ownership) enum

Specification
00 §7.5
Values
ValueMeaning
core03 (errors only)
session03
address01
discovery02
crypto04
auth, account, device, bot05 (event type device.revoked is defined by 07)
federation06
identity07
pairing, backup, vault08
community, member, channel, invite09
role, permission, moderation, report10
message, reaction, typing, read, presence, attachment11
dm12
mls13
history, sealed14
call, relay, sfu15
media18
notify, push, notification19
security00 (errors only)
relayctl21 (sloppyv-relay-control.v1 subprotocol messages only; no event types or error codes)
x-<name>Implementation extensions (03 §10.4)

Warning enum

Specification
00 §4.12.1
Values
ValueMeaning
W1Secure account enters insecure community/channel
W2DM contact key changed, downgraded, or address is a new account
W3Group DM has insecure participants
W4aYour identity was reset from elsewhere
W4bA device not yours under your address in a roster
W4cNew device enrolled on your account
W4dNew sign-in on a new device
W5Admin upgrading channel/server confirmation
W6Bot joined a secure context
W71:1 DM insecure because contact insecure
W8Recovery key not saved
W9Pinned-secure context presented as insecure

01 Addresses, display names and links

address.deleted data object

The data member of the 410 address.deleted problem object; MUST NOT carry deletedAt or anything about the deleted account.

Specification
01 §9.4
Fields
NameTypeRequiredMeaning and constraints
formerKindstringYesWhat the deleted entry was.
user or channel; a bot is reported as user

address.invalid_local_part data object

data member of the 400 address.invalid_local_part problem object.

Specification
01 §3.9, §12.1
Fields
NameTypeRequiredMeaning and constraints
reasonenum LocalPartFailureReasonYesWhy the local part fails.
§3.9; unknown value treated as disallowed_code_point
indexintegerNoPosition of the offending code point.
Zero-based code-point index; present only when one code point is to blame and the failure was found in step 4 (index into the string after step 2) or in step 10 / shape rule 1 leading_mark (index into the string after step 9)

address.non_canonical data object

data member of the 400 address.non_canonical problem object.

Specification
01 §7.6, §12.1
Fields
NameTypeRequiredMeaning and constraints
reasonenum NonCanonicalReasonYesWhy the address isn't canonical.
malformed, local_not_prepared, domain_not_alabel, alias_domain; unknown treated as malformed
fieldstringNoWhich member held the non-canonical address.
JSON Pointer (RFC 6901) to the member, or a claim name
canonicalstringNoThe canonical form of the address.
Present if the server knows it

address.not_allowed data object

data member of the 403 address.not_allowed problem object.

Specification
01 §5.4, §12.1
Fields
NameTypeRequiredMeaning and constraints
reasonenum NotAllowedReasonYesWhy local policy refuses the local part.
too_short or blocked
minCharsintegerNoThe server's registration minimum in code points.
With too_short

address.not_found data object

The data member of the 404 address.not_found problem object.

Specification
01 §9.4
Fields
NameTypeRequiredMeaning and constraints
availablebooleanYesWhether an ordinary person could register this local part as a user right now.
Advisory
reasonenum AddressNotFoundReasonNoWhy the local part isn't available.
Required when available is false; unknown value treated as taken
minCharsintegerNoServer's registration minimum in code points.
When reason is not_allowed because of length

address.too_similar data object

data member of the 409 address.too_similar problem object; MUST NOT reveal the entry collided with.

Specification
01 §5.3, §12.1
Fields
NameTypeRequiredMeaning and constraints
fieldenum TooSimilarFieldYesWhich one collided.
local or name

AddressInfo object

200 response of the address lookup; MUST NOT include anything else (no member counts, topics, membership, online state, security state, account age or linked providers).

Specification
01 §9.3
Fields
NameTypeRequiredMeaning and constraints
kindenum AddressInfoKindYesWhat the address names.
user or channel; not the Channel object's kind
addressstring (canonical address)YesCanonical address (current address for a renamed channel's old local part during reservation).
§7; server's canonicalDomain
namestringYesDisplay name.
§6.2; receivers apply §6.4
botbooleanNoWhether the account is a bot.
When kind is user
ctxstringNoChannel context reference.
When kind is channel; ch:<UUIDv7>
channelKindenum ChannelKindNoChannel kind.
When kind is channel; text or voice; unknown treated as text
securityenum ChannelSecurityNoChannel security mode.
When kind is channel; insecure or secure; unknown treated as secure for display, never pins

AddressRef object

JSON convention for an address carried with its display name; embedding documents MAY add members such as did.

Specification
01 §6.7
Fields
NameTypeRequiredMeaning and constraints
addrstring (canonical address)YesThe address.
Canonical (§7)
namestringNoThe display name as the owning server last stated it.
§6.2; receivers apply §6.4; owning servers always include it; absent or null means show the prepared local part

canonicalize() result other

Result of canonicalize(input, defaultDomain), the single function that turns input form into wire form.

Specification
01 §7.2
Fields
NameTypeRequiredMeaning and constraints
addressstring (canonical address)NoCanonical address.
L@C; absent for a community target
domainstringYesCanonical domain C.
Lowercase A-label; always present per §7.2 step 7 table (required flag inferred; spec gives no explicit flag)
localstringNoPrepared local part L.
Absent for a community target
baseUrlstringYesThe server's base URL.
always present per §7.2 step 7 table (required flag inferred; spec gives no explicit flag)
viaAliasbooleanYestrue if typed domain D differs from C.
Diagnostics only; MUST NOT be shown; always present per §7.2 step 7 table (required flag inferred; spec gives no explicit flag)
evidencedelegation evidence level (02)YesDelegation evidence of discovery.
Delegation evidence level of 02 (D-030); always present per §7.2 step 7 table (required flag inferred; spec gives no explicit flag)
invitestringNoInvite code from a link, if any.
Opaque; 09 owns format

Display name other

The local part with only spaces and capitalization added; display-name = dn-word *( %x20 dn-word ); linked to local part (linkPrepare(N) = L), single U+0020 spaces only (none leading/trailing/doubled), NFC, at most 128 UTF-8 octets.

Specification
01 §6.1, §6.2

links.join template variables other

RFC 6570 URI Template (Level 3 or below) published in ServerMetadata links.join (member owned by 02); literal scheme and authority; host must be base-URL host or one of domains, checked by discovery; MUST reference local and invite, MAY reference domain.

Specification
01 §11.2
Fields
NameTypeRequiredMeaning and constraints
localstringNoDisplay-local form of the target address.
Undefined (not empty) when the target is a community; expansion percent-encodes UTF-8
domainstringYesCanonical domain of the target's server.
A-label; never undefined
invitestringNoInvite code.
09's canonical form; undefined when none

Namespace entry other

One row of a server's single shared namespace table (users, bots, channels share it); storage is an implementation matter but behaviour must be atomic against the whole table.

Specification
01 §5.1
Fields
NameTypeRequiredMeaning and constraints
localstringYesThe local part.
Prepared local part; unique in the table
kindenum NamespaceEntryKindYesuser, bot, channel, reserved, renamed or quarantined.
collisionKeysarray<string>YesCollision keys recorded for the entry.
§5.3
uvstringYesUnicode version under which the entry was registered or last re-keyed.
classenum ReservedClassNoP, A or C.
For reserved entries
ctxstringNoThe channel that holds the reservation.
For renamed entries
renamedAttimestampNoWhen the channel was renamed.
For renamed entries
deletedAttimestampNoWhen the entry was deleted.
For quarantined entries
formerKindstringNoWhat the entry was before deletion.
For quarantined entries

sloppyv URI other

sloppyv://[local@]domain[?invite=CODE]; names a user, bot, channel or community, optionally with an invite. web+sloppyv is an equivalent scheme for browsers (never generated for sharing).

Specification
01 §10.2
Fields
NameTypeRequiredMeaning and constraints
schemestringYesScheme.
sloppyv or web+sloppyv, case-insensitive
userinfostringNoLocal part; absent for a community target.
Display-local or prepared local part, non-ASCII as percent-encoded UTF-8; never contains ':'; generated with every octet outside ALPHA/DIGIT percent-encoded with uppercase hex
hoststringYesDomain.
A-label domain on generation (canonical domain); on parsing also percent-encoded UTF-8; no port, no IP literal
invitestringNoInvite code, opaque to 01.
Exactly one; 1 to 64 code points after percent-decoding, valid UTF-8; generated in 09's canonical form (12 Crockford base32 chars, no hyphens)

AddressInfoKind enum

Specification
01 §9.3
Values
ValueMeaning
userA user or bot account
channelA channel

AddressInvalidReason (address.invalid data.reason) enum

Specification
01 §12.1, §8.2
Values
ValueMeaning
too_longparseInput input over 1,024 code points
multiple_atMore than one @
missing_domainNo domain and no defaultDomain
emptyNothing left after trimming/unwrapping
invalid_utf8mailto: percent-decoding gave invalid UTF-8

AddressNotFoundReason (address.not_found data.reason) enum

Specification
01 §9.4
Values
ValueMeaning
reservedReserved name (§5.4)
too_similarA collision key matches (§5.3)
not_allowedServer policy (§5.4)
takenAn entry exists that this requester may not see (incl. hidden channels); fallback for unknown values

ChannelKind enum

Specification
01 §9.3
Values
ValueMeaning
textText channel (default for unknown values)
voiceVoice channel

Also described in 00 §2.6, 09 §6.2.

ChannelSecurity enum

Specification
01 §9.3
Values
ValueMeaning
insecureInsecure channel
secureSecure channel (assumed for unknown values when deciding pre-join display)

Also described in 09 §6.1.

ContextDomain enum

Specification
01 §4.4
Values
ValueMeaning
channel/community screensHosting server's canonical domain (timeline, member list, roster, call, mentions picker, member search; community member/role lists, audit log, moderation)
1:1 DM or group DMViewer's home server's canonical domain
anywhere elseViewer's home server's canonical domain (contacts, DM index, message requests, notifications, global search)

DisplayNameMismatchReason (address.display_name_mismatch data.reason) enum

Specification
01 §6.3
Values
ValueMeaning
not_linkedlinkPrepare fails or differs from the local part
too_longOver 128 octets

DomainFailureReason (address.invalid_domain data.reason) enum

Specification
01 §4.2
Values
ValueMeaning
emptyNothing left after trimming
white_spaceWhite space inside the domain
empty_labelLeading dot, two dots in a row, or second trailing dot
ip_literalBracketed literal or last label numeric / 0x-hex (WHATWG ends-in-a-number)
portContains ':'
idnaUTS #46 ToASCII error or invalid xn-- label; fallback for unknown values
single_labelFewer than two labels
too_longOver 253 octets
numeric_tldLast label all digits after mapping

FormerKind enum

Specification
01 §9.4, §5.7
Values
ValueMeaning
userDeleted user (bots reported as user in address.deleted)
channelDeleted or long-renamed channel

InvalidLinkReason (address.invalid_link data.reason) enum

Values
ValueMeaning
schemeNot sloppyv: or web+sloppyv:
userinfo_passwordUserinfo contains ':'
portHost has a port
ip_literalBracketed host
invalid_utf8Percent-decoding gave invalid UTF-8
duplicate_paramMore than one invite parameter
bad_inviteinvite empty, invalid UTF-8 or over 64 code points
not_a_share_linkNo usable alternate sloppyv link found
fetch_failedNetwork error or unreadable (opaque) CORS response while fetching a share link

LocalPartFailureReason (address.invalid_local_part data.reason) enum

Specification
01 §3.9
Values
ValueMeaning
emptyNothing left after removing white space
too_longOver 64 octets after preparation, or over 256 code points of input
too_shortShorter than registration minimum (registration only, inside address.not_allowed)
disallowed_code_pointNever-allowed character; also the fallback for unknown reasons
restricted_code_pointIdentifier_Type not Recommended/Inclusion/Limited_Use
unassignedUnassigned in the implementation's Unicode version
leading_markStarts with a combining mark
no_letterNo letter at all
too_many_marksRun of more than 4 Mn in NFD
repeated_markMn immediately following an identical Mn
confusable_markU+0307 after a Soft_Dotted letter
mixed_scriptFails Highly Restrictive script rule
mixed_digitsDigits from two decimal digit systems
bidi_ruleFails RFC 5893 Bidi Rule
unstablePreparation isn't idempotent
contains_atInput to a local-part-only field contained @ (§9.2)
invalid_utf8Percent-decoded path or link segment wasn't valid UTF-8

NamespaceEntryKind enum

Specification
01 §5.1
Values
ValueMeaning
userUser account
botBot account
channelChannel
reservedReserved local part (registry or server-local)
renamedOld local part of a renamed channel, reserved for 90 days
quarantinedDeleted local part in quarantine

NonCanonicalReason (address.non_canonical data.reason) enum

Specification
01 §7.5, §12.1
Values
ValueMeaning
malformedMost general value; receivers treat unknown values as malformed (§12.1). §7.5 does not map individual checks to reasons.
local_not_preparedListed reason (§7.5); by its name, the local part isn't a prepared local part
domain_not_alabelListed reason (§7.5); by its name, the domain isn't a lowercase A-label
alias_domainListed reason (§7.5); by its name, the domain is an alias rather than the canonicalDomain (example in §12.2)

NotAllowedReason (address.not_allowed data.reason) enum

Specification
01 §5.4, §12.1
Values
ValueMeaning
too_shortBelow the server's registration minimum (with minChars)
blockedRefused by local policy (e.g. offensive-word list)

ReservedClass enum

Specification
01 §5.4
Values
ValueMeaning
PProtocol: nobody may register as user, bot or channel, not even the operator
AAdministrative: only the operator may assign to a user/bot it runs (outside the protocol); members with manage_channels MAY use for channels
CChannel names: refused for sign-up and bot creation; members with manage_channels MAY create channels with them

ReservedLocalParts enum

Specification
01 §5.4
Values
ValueMeaning
meP: account-level context reference and /v1/me paths
everyoneP: mention keyword
hereP: mention keyword
allP: mention keyword
systemP
serverP
communityP
sloppyvP
nullP
undefinedP
noneP
unknownP
nobodyP
anonymousP
deletedP
deleteduserP
adminA
administratorA
administratorsA
rootA
sysadminA
superuserA
ownerA
operatorA
staffA
teamA
officialA
moderatorA
moderatorsA
modA
modsA
supportA
helpA
helpdeskA
securityA
abuseA
postmasterA
hostmasterA
webmasterA
noreplyA
infoA
contactA
billingA
legalA
privacyA
statusA
announcementsA
newsA
notificationsA
sloppyvoiceA
generalC
lobbyC
rulesC
welcomeC
chatC
voiceC
musicC
gamingC
eventsC

TooSimilarField (address.too_similar data.field) enum

Specification
01 §5.3
Values
ValueMeaning
localThe local part collided
nameThe display name collided

02 Discovery, server metadata and server keys

AuthProvider object

Element of auth.providers.

Specification
02 §7.3.2
Fields
NameTypeRequiredMeaning and constraints
idstringYesUsed in /v1/auth/authorize?provider=<id> (05).
1–32 octets of [a-z0-9_-], unique
namestringYesButton label.
1–64 code points
typeProviderTypeYesButton styling hint.
google | github | microsoft | apple | oidc; unknown -> oidc
iconstringNoButton icon for oidc providers.
https URL ≤ 512 octets; cosmetic
signupbooleanNoWhether this provider may create new accounts (05 §8.3).
absent means true; non-boolean ignored

DiscoveryRecord other

DNS TXT record at _sloppyv.<D>; record text = concatenation of all character-strings of one RR. ABNF: sv-record = WSP "v=sv1" 1(1*WSP sv-param) *WSP; url-param exactly once; ext-param ignored. Example: v=sv1 url=https://chat.sloppyvoice.com/server.

Specification
02 §3
Fields
NameTypeRequiredMeaning and constraints
vstringYesVersion tag.
first token, exactly v=sv1 (case-insensitive)
urlstringYesBase URL of the server.
exactly once; a base-url (§3.3); parameter name case-insensitive
<ext-param>stringNoExtension parameters, ignored by v1 consumers.
param-name = ALPHA (ALPHA / DIGIT / "-"); param-value = 1VCHAR; no name twice

Also described in 00 §2.1, §8 F1.

DiscoveryResult other

Internal output of a successful resolution; wire projection is ResolveResult.

Specification
02 §5.1
Fields
NameTypeRequiredMeaning and constraints
domainstringYesThe queried domain D.
baseUrlstringYesNormalized base URL.
normalized
sourceSourceYesWhere the delegation came from.
evidenceEvidenceYesDelegation evidence.
canonicalDomainstringYesServer's canonical domain.
verified per §5.3
metadataServerMetadataYesValidated metadata.
validated per §7.4
resolvedAttimestampYesWhen the delegation was obtained.
delegationExpiresAttimestampYesFreshness of the delegation half.
metadataExpiresAttimestampYesFreshness of the metadata half.
stalebooleanYesTrue while a stale copy is being used.

KeyRotation jws

Compact JWS (typ sv-keyrot+jwt) in which the server's active sign key vouches for a new key of the same server; permanent (no exp); ≤ 2,048 octets compact.

Signed by
the server's active sign key at signing time (previous active sign key for a new sign key; current active sign key for a new mls-external-sender key; none for a sign key replacing a revoked one)
Specification
02 §12.1
Fields
NameTypeRequiredMeaning and constraints
header.algstringYesAlgorithm.
"EdDSA"
header.typstringYesType.
"sv-keyrot+jwt"
header.kidstringYeskid of the signing key.
issstringYesServer's canonical domain.
equals canonicalDomain
nintegerYesPosition in the chain.
1 for the first rotation, then +1
iatintegerYesWhen signed.
NumericDate
prevstringYesThumbprint of the signing key.
thumbprint of the key named by header kid
keyKeyRotationKeyYesThe new key.
exactly kty, crv, x, kid, purpose; kid domain = iss; thumbprint ≠ prev
urlstringYesBase URL the server authorises from this rotation on.
normalized base URL; once a new URL is named, every later KeyRotation names it until the next move

Also described in 00 §6 HP-7, §7.13.

KeyRotationKey object

The key claim of a KeyRotation: exactly these members; status and times live in keys.

Specification
02 §12.1
Fields
NameTypeRequiredMeaning and constraints
ktystringYesKey type.
"OKP"
crvstringYesCurve.
"Ed25519"
xbase64urlYesPublic key.
32 octets
kidstringYesKey ID.
server-kid; domain equals iss
purposeKeyPurposeYesPurpose.

MetadataAuth object

ServerMetadata auth.

Specification
02 §7.3.2
Fields
NameTypeRequiredMeaning and constraints
providersarray<AuthProvider>YesOIDC providers configured by the admin.
0–16, in display order; MAY be empty
registrationRegistrationYesWho may create an account.
open | invite | closed; unknown -> closed

MetadataChangedPayload object

Payload d of discovery.metadata_changed; receivers MUST NOT take any value from it.

Specification
02 §16.1
Fields
NameTypeRequiredMeaning and constraints
canonicalDomainstringYesServer whose metadata changed.
updatedAttimestampYesNew updatedAt.
changesarray<MetadataChange>YesChanged areas.
urgentbooleanYesKey revoked.

MetadataContact object

ServerMetadata contact; all optional, each invalid member ignored.

Specification
02 §7.3.5
Fields
NameTypeRequiredMeaning and constraints
operatorstringNoWho runs the server.
≤ 100 code points
adminstringNoGeneral admin contact.
mailto: or https: URI
abusestringNoAbuse reports.
mailto: or https: URI; RECOMMENDED
securitystringNoSecurity reports.
mailto: or https: URI
urlstringNoAbout page.
https URL

MetadataEndpoints object

ServerMetadata endpoints.

Specification
02 §7.3.1
Fields
NameTypeRequiredMeaning and constraints
apistringYesThe server's base URL; every API path is relative to it.
normalized base URL; MUST equal the normalized base URL the metadata was fetched from, else discovery.metadata_invalid
relayUrlstringYesDefault media relay base URL; connection is {relayUrl}/connect (15).
base-url; a call-join response's relay URL takes precedence for that call
pushMetadataPushYesHow this server, as home server, delivers pushes (19).

MetadataLimits object

Container of non-negative integers named max<Thing><Unit>; members owned by 00 §7.12 / 03 §16.3 registrations. Server MUST include every registered limit and never below its floor; consumer uses the floor when missing/invalid; unknown members ignored.

Specification
02 §7.3.3

MetadataLinks object

ServerMetadata links.

Specification
02 §7.3.4
Fields
NameTypeRequiredMeaning and constraints
joinstringNoShare-link template.
RECOMMENDED; RFC 6570 template level ≤ 3, ≤ 512 octets; variables only local, domain, invite; expansions https; scheme and authority literal; host = endpoints.api host or one of domains; invalid -> treated as absent
webstringNoOrigin of the server's own web client (20 §16.11).
https URL ≤ 512 octets; NOT cosmetic: invalid value kept as 'present, matching no origin'
termsstringNoTerms of service.
https URL; cosmetic
privacystringNoPrivacy notice.
https URL; cosmetic
helpstringNoHelp page.
https URL; cosmetic

MetadataPush object

ServerMetadata endpoints.push.

Specification
02 §7.3.1
Fields
NameTypeRequiredMeaning and constraints
gatewayPolicyGatewayPolicyYesWhich push gateways the server delivers to.
any | listed; unknown -> listed; software default any (D-093)
gatewaysarray<string>NoAllowed push gateways.
required when gatewayPolicy is listed; 0–32 normalized base-urls (gatewayUrl of 19 §9.1 without /v1/push)
webPushKeybase64urlNoVAPID public key; absent means no Web Push.
65-octet uncompressed P-256 point

MetadataSoftware object

ServerMetadata software; diagnostics only, consumers MUST NOT change behaviour based on it.

Specification
02 §7.3.6
Fields
NameTypeRequiredMeaning and constraints
namestringNoImplementation name.
≤ 64 code points
versionstringNoImplementation version.
≤ 32 code points

PeerPin object

Wire form of a pin (admin API and discovery.peer_suspended payload).

Specification
02 §10.5
Fields
NameTypeRequiredMeaning and constraints
domainstringYesQueried domain.
statePinStateYesPin state.
unknown -> suspended
canonicalDomainstringYesPinned canonical domain.
baseUrlstringYesPinned base URL.
securebooleanYesPinned secure flag.
evidenceEvidenceYesEvidence at creation/last change.
unknown -> dns-only
keysarray<PeerPinKey>YesPinned keys.
revokedarray<string>YesRevoked thumbprints.
firstSeenAttimestampYesFirst seen.
RFC 3339
changedAttimestampYesLast changed.
RFC 3339
lastVerifiedAttimestampYesLast verified.
RFC 3339
suspendedAttimestampNoWhen suspended.
present when suspended
reasonPinReasonNoWhy suspended.
present when suspended; unknown -> generic conflict
observedPeerPinObservedNoRejected candidate.
present when suspended

PeerPinKey object

Key entry in PeerPin.keys and observed.keys.

Specification
02 §10.5
Fields
NameTypeRequiredMeaning and constraints
kidstringYesKey ID.
thumbprintstringYesThumbprint.
RFC 7638 base64url
purposeKeyPurposeYesPurpose.
unknown -> show as unknown
statusKeyStatusYesStatus.
unknown -> show as unknown

PeerPinObserved object

PeerPin.observed: the rejected candidate.

Specification
02 §10.5
Fields
NameTypeRequiredMeaning and constraints
baseUrlstringYesObserved base URL.
canonicalDomainstringYesObserved canonical domain.
securebooleanYesObserved secure flag.
evidenceEvidenceYesObserved evidence.
keysarray<PeerPinKey>YesObserved keys.
observedAttimestampYesWhen observed.

PeerResumedPayload object

Payload d of discovery.peer_resumed.

Specification
02 §16.3
Fields
NameTypeRequiredMeaning and constraints
domainstringYesDomain.
howResumeHowYesHow it resumed.
unknown -> auto
baseUrlstringYesBase URL (the spec gives only its type).

PinAcceptRequest object

Body of POST /v1/resolve/pins/{domain}/accept; must equal the observed values.

Specification
02 §10.5
Fields
NameTypeRequiredMeaning and constraints
baseUrlstringYesReviewed base URL.
= observed.baseUrl
canonicalDomainstringYesReviewed canonical domain.
= observed.canonicalDomain
keyThumbprintsarray<string>YesReviewed keys.
= observed key thumbprints

PinList object

200 body of GET {base}/v1/resolve/pins: {"items": [PeerPin…], "nextCursor": …} (cursor pagination, 00 §7.10).

Specification
02 §10.5
Fields
NameTypeRequiredMeaning and constraints
itemsarray<PeerPin>YesPins on this page.
nextCursorstringNoCursor for the next page.
per 00 §7.10; presence rules not stated in 02

ResolveResult object

200 body of GET /v1/resolve.

Specification
02 §6.3
Fields
NameTypeRequiredMeaning and constraints
domainstringYesThe queried domain.
lowercase A-label
baseUrlstringYesNormalized base URL.
normalized
canonicalDomainstringYesCanonical domain, verified per §5.3.
sourceSourceYesDelegation source.
unknown -> wellknown
evidenceEvidenceYesDelegation evidence.
unknown -> dns-only
resolvedAttimestampYesTime of the delegation.
RFC 3339
expiresAttimestampYesWhen the client's cached copy expires.
≤ 86,400 s after the response
stalebooleanYesServer is using a stale copy.

ServerKey object

Ed25519 public JWK (RFC 7517/8037) in ServerMetadata keys; identified by RFC 7638 thumbprint over crv, kty, x; kid is only a lookup hint. MUST NOT contain d. use/key_ops/x5c/x5t/x5u/jku ignored and never fetched.

Specification
02 §11.1
Fields
NameTypeRequiredMeaning and constraints
ktystringYesKey type.
"OKP"
crvstringYesCurve.
"Ed25519"
xbase64urlYesPublic key.
exactly 32 octets, canonical, not small order (04)
kidstringYesKey ID for JWS headers.
server-kid (§11.2); unique within keys
purposeKeyPurposeYesWhat the key may sign.
sign | mls-external-sender; unknown -> key ignored
statusKeyStatusYesLifecycle state.
next | active | retired | revoked; unknown -> key ignored
nbfintegerYesFrom when the key may sign.
NumericDate
expintegerYesAfter which nothing signed by the key is accepted (except §12.3 continuity check).
NumericDate; nbf < exp ≤ nbf + 63,158,400 (731 days)
retiredAtintegerNoWhen the key stopped being active.
required when status is retired; nbf ≤ retiredAt < exp
rvtintegerNoEarliest possible compromise time (or revocation time).
required when status is revoked; NumericDate
algstringNoJWS algorithm.
if present "EdDSA"

Also described in 00 §6 HP-7, §7.7.

ServerMetadata object

Body of {base}/meta: I-JSON, UTF-8, at most 262,144 octets, unknown members ignored; 'cosmetic' members are dropped when invalid instead of invalidating the document. Not signed; integrity rests on TLS.

Specification
02 §7.2
Fields
NameTypeRequiredMeaning and constraints
canonicalDomainstringYesThe server's one canonical domain.
lowercase A-label valid per §5.1; element of domains; immutable for the life of the server
domainsarray<string>YesCanonical domain plus alias domains.
1–100 elements, no duplicates, each lowercase A-label valid per §5.1
namestringYesDisplay name.
1–64 code points after trimming; NFC; MUST equal Community name (09)
descriptionstringNoOne-paragraph description.
≤ 500 code points; cosmetic
iconstringNoSquare icon image.
https URL ≤ 512 octets; PNG/WebP/JPEG, ≥ 256×256 RECOMMENDED; cosmetic
securebooleanYesThe server's secure flag.
MUST equal Community secure (09); never true -> false (D-073)
securedAttimestamp|nullYesWhen the server became (or was created) secure.
null while secure is false; MUST equal Community securedAt; immutable once set
versionsarray<string>YesProtocol versions spoken.
each a proto-version (03 §12.1); one per major version, giving highest minor; v1 servers list "1.0" or later "1.x"
minClientstringYesLowest protocol version a client must implement.
proto-version; "1.0" unless a later minor is needed
featuresarray<string>YesEvery feature implemented, mandatory ones included.
each a feature (03 §12.2) ≤ 64 octets; MUST include voice-dc/1 and video-dc/1; unknown names ignored
keysarray<ServerKey>YesServer public keys.
1–16 elements; §11.5 rules
keyChainarray<string>YesKeyRotation chain.
0–64 compact KeyRotation JWSs; §12.2 rules; empty if never rotated
endpointsMetadataEndpointsYesWhere to reach the server's parts.
authMetadataAuthYesLogin and registration information.
limitsMetadataLimitsYesAdvertised size limits.
linksMetadataLinksYesLink templates and public pages.
MAY be empty object
contactMetadataContactNoOperator and contact info.
RECOMMENDED; cosmetic
softwareMetadataSoftwareNoImplementation name and version.
cosmetic; diagnostics only
updatedAttimestampYesWhen any other member last changed.
RFC 3339

Also described in 00 §2.1, §7.8, §6 HP-7.

WellKnownDocument object

JSON at https://D/.well-known/sloppyv, at most 4,096 octets; unknown members ignored.

Specification
02 §4.1
Fields
NameTypeRequiredMeaning and constraints
vstringYesProtocol version.
MUST be "sv1"
urlstringYesBase URL for D.
base-url

ChainStatus enum

Specification
02 §12.3
Values
ValueMeaning
ok
forkElement at n = chainHead.n differs
rollbackChain empty or ends before chainHead.n
failedShape error, signature failure or claim check failure

Evidence enum

Specification
02 §9.1
Values
ValueMeaning
dnssecTXT answer (and CNAME chain) validated Secure by a trusted validating resolver; never recorded by web clients
same-siteBase-URL host equals D or shares D's registrable domain (PSL ICANN+PRIVATE)
wellknownSource wellknown, or TXT confirmed by a matching .well-known document (W-c)
dns-onlyOnly the DNS answer; accepted on first use and pinned

GatewayPolicy enum

Specification
02 §7.3.1
Values
ValueMeaning
anyDeliver to any push gateway a device registers (default)
listedOnly to gateways in gateways; unknown values treated as listed

KeyPurpose enum

Specification
02 §11.3
Values
ValueMeaning
signEvery JWS the server signs (HomeAssertion, S2S token, IdentityState, RelayTicket, sv-push+jwt, KeyRotation)
mls-external-senderMLS messages as the group's external sender; never signs a JWS

KeyStatus enum

Specification
02 §11.4
Values
ValueMeaning
nextPublished ahead (nbf ≥ 25 h after first appearance)
activeCurrently signing; exactly one per purpose
retiredStopped signing; retiredAt set; verifiable for iat ≤ retiredAt until exp
revokedCompromised or lost; rvt set; never returns

KeyUnusableReason enum

Specification
02 §11.6, §17
Values
ValueMeaning
wrong_purpose
revoked
expired
not_yet_valid
stale

MetadataChange enum

Specification
02 §16.1
Values
ValueMeaning
keys
domains
endpoints
auth
limits
features
versions
secure
otherAnything else; fallback for unknown values

MetadataInvalidReason enum

Specification
02 §17
Values
ValueMeaning
not_json
too_large
redirect
missing_member
bad_member
bad_domains
api_mismatch
invalid_keys
invalid_key_chain
private_key_publishedA ServerKey contains d

PinReason enum

Specification
02 §10.2, §10.5
Values
ValueMeaning
key_unrevokedA revoked thumbprint reappeared with another status; never accepted, not admin-acceptable
secure_downgradesecure true -> false; never accepted, not admin-acceptable
canonical_changedCanonical domain changed
chain_forkkeyChain element at chainHead.n has a different hash
chain_rollbackkeyChain ends before chainHead (replaces base_url_changed/keys_changed)
base_url_changedBase URL changed without strong evidence or URL-bound rotation
keys_changedNew or re-labelled keys not vouched for and evidence weak

ProviderType enum

Specification
02 §7.3.2
Values
ValueMeaning
googleGoogle
githubGitHub
microsoftMicrosoft
appleApple
oidcAny other OIDC issuer; also the fallback for unknown values

Also described in 05 §3.3, §4.1.

RecordInvalidReason enum

Specification
02 §17
Values
ValueMeaning
malformed
conflicting
bad_url
wellknown_invalid

Registration enum

Specification
02 §7.3.2
Values
ValueMeaning
openAnyone signing in with a listed provider
inviteOnly with an invite
closedNo new accounts; fallback for unknown values

Also described in 05 §8.3.

ResumeHow enum

Specification
02 §16.3
Values
ValueMeaning
autoRe-check matched the pin again (fallback for unknown)
evidenceRe-check found the difference now acceptable
adminAdmin accepted the observed result

Source enum

Specification
02 §1.1, §5.1
Values
ValueMeaning
txtDelegation from the discovery record
wellknownDelegation from the .well-known document alone

WellKnownCase enum

Specification
02 §4.3
Values
ValueMeaning
W-aNo TXT record (everyone)
W-bTemporary DNS failure (everyone); freshness ≤ 300 s
W-cValid TXT record that would be dns-only: servers MUST, native clients SHOULD for home server at sign-in, MAY otherwise

WellKnownFetchOutcome enum

Specification
02 §4.2
Values
ValueMeaning
present200 with a valid body
invalid200 with an invalid body
absent404/410, bad redirect outcome, or D has no A/AAAA
unavailableConnection/TLS failure, timeout, 429, 5xx or other unexpected status

03 Client transport, envelopes and errors

AuthorizationHeader other

authorization = auth-scheme 1SP credentials; auth-scheme = "Bearer" / "Bot" (case-insensitive); credentials = 14096token-char; token-char = ALPHA / DIGIT / "-" / "." / "_" / "~" / "+" / "/" / "=" (RFC 9110 token68, max 4,096 chars).

Specification
03 §3.1

Base64urlIds other

b64u-64 = 10b64u-char b64u-last2 (8 bytes, 11 chars); b64u-128 = 21b64u-char b64u-last4 (16 bytes, 22 chars); b64u-256 = 42b64u-char b64u-last2 (32 bytes, 43 chars). b64u-last2 in AEIMQUYcgkosw048; b64u-last4 in AQgw. did = b64u-128; key-thumbprint (ikf, dkf) = b64u-256; ekid = b64u-64; jti = 22*86b64u-char and canonical.

Specification
03 §8.4

CollectionPage object

Response of collection endpoints paged by opaque cursor.

Specification
03 §13.2
Fields
NameTypeRequiredMeaning and constraints
itemsarray<object>YesThe page.
order defined by owner, MUST be stable
nextCursorstring|nullYesCursor for the next page.
cursor grammar; null at the end
totalintegerNoTotal count.
owner MAY define exact or estimated

Also described in 00 §7.10.

ContextReference other

ctx-ref = channel-ref / dm-ref / gdm-ref; channel-ref = %s"ch:" uuid7; dm-ref = %s"dm:" b64u-128; gdm-ref = %s"gdm:" uuid7. ch:/gdm: generated by hosting server; dm: computed from the two canonical addresses (12).

Specification
03 §8.3

Envelope object

Every WebSocket message in either direction; one JSON object per UTF-8 text message. Not used on HTTP bodies.

Specification
03 §6.1
Fields
NameTypeRequiredMeaning and constraints
vintegerYesEnvelope version.
MUST be 1 on sloppyv.v1
tstringYesMessage or event type.
event-type grammar <area>.<name>, or reserved type error
iduuidv7YesID of this envelope.
for durable events fixed when sequenced, same in every delivery/replay; otherwise fresh
reuuidv7NoThe id of the message being answered.
server-to-client only on replies; client-to-server only on session.pong
ctxstringNoThe stream the event belongs to: a context reference, me or community.
server-to-client on every event, absent on control messages; client-to-server absent/ignored
seqintegerNoSequence number in the stream ctx names.
1 to 2^53 − 1; durable events only; absent/ignored client-to-server
tstimestampNoServer timestamp; for durable events the time it was sequenced, same in every delivery.
required server-to-client; optional and ignored client-to-server
dobjectYesPayload, defined by the owner of t.
{} when nothing to carry

Also described in 00 §7.4.

ErrorCodeAndEventTypeGrammar other

error-code = area "." reason; area = LCALPHA (LCALPHA / DIGIT) / ext-area; ext-area = %s"x-" 1(LCALPHA / DIGIT); reason = LCALPHA *(LCALPHA / DIGIT / ""). event-type = area "." name / %s"error"; name = LCALPHA *(LCALPHA / DIGIT / "").

Specification
03 §10.4, §11.1

FeatureName other

feature = feat-name ["/" %x31-39 *2DIGIT]; feat-name = LCALPHA *(LCALPHA / DIGIT / "-"); at most 64 characters.

Specification
03 §12.2

Head object

Value in session.heads.heads map.

Specification
03 §5.7
Fields
NameTypeRequiredMeaning and constraints
headSeqintegerYesThe stream's latest seq.
lastItemSeqintegerNoseq of the latest durable timeline-item event this socket's account would receive with full payload; withheld events don't count.
absent if none
lastItemAttimestampNoThat event's ts.

IdempotencyKeyHeader other

Idempotency-Key = idempotency-key / (DQUOTE idempotency-key DQUOTE); quoted and unquoted forms are the same key.

Specification
03 §14.2

IdentifierRegistry other

The identifier format registry of 03 §8.4 (makes 00 §7.6's table normative). Each entry: format, wire type, who generates it, owner of semantics. Identifiers are compared as exact byte strings (addresses in canonical form); non-canonical spellings are rejected with 400 core.invalid_request.

Specification
03 §8.4
Fields
NameTypeRequiredMeaning and constraints
Addressstring—Generated at registration (05, 09); owner 01
canonical local@domain: local part PRECIS-prepared, case-folded, UTF-8 NFC; domain a lowercase A-label (D-032); display form in a separate name member
ctxstring—Context reference; generated by hosting server, dm: computed by anyone; owner 03 (format), 09, 12
ctx-ref (§8.3)
streamstring—Stream name; owner 03
stream (§8.3)
miduuidv7—Message ID, generated by the sending client; owners 11, 14
uuid7
other object IDsuuidv7—Generated by the server; each object's owner
uuid7
id / connuuidv7—Envelope id (sender of the envelope) and connection conn (server); owner 03
uuid7
didbase64url—Device ID, generated by the home server at device registration; owner 05
b64u-128: 16 random bytes, 22 characters
pidinteger—Participant index, generated by the hosting server; owner 15
0 to 65,535, unique within a call
jtibase64url—Generated by the issuer of the JWS; owners 04, 06
jti grammar: at least 128 random bits, at most 64 bytes, canonical; issuers SHOULD use exactly 16 bytes
server kidstring—Server key ID, generated by the server; owner 02
server-kid, e.g. a.com#2026-12a
ikf / dkfbase64url—Identity and device key IDs, computed by anyone; owners 04, 07
key-thumbprint: RFC 7638 SHA-256 JWK thumbprint, 43 characters
MLS group_idMLS bytes—Generated by the group creator; owner 13
mls-group-id carried as UTF-8 bytes inside MLS
ekidbase64url—Epoch key ID, computed by anyone from K_hist; owner 14
b64u-64 (11 characters)
seqinteger—Generated by the server that owns the stream; owner 03
1 to 2^53 − 1 per stream, gap-free for durable events
Idempotency-Key valueheader—Generated by the client; owner 03
idempotency-key (§14.2)
cursorstring—Pagination cursor generated by the server; owner 03
cursor, opaque (§13.2)
instancestring—Problem instance generated by the server; owner 03
problem-instance (urn:uuid:<uuid7>)
feature name, version, event type, error codestring—Registry values; owners 03 and others
§12.2, §12.1, §11.1, §10.4

InvalidRequestErrorItem object

Item of data.errors of core.invalid_request (array of at most 32 items).

Specification
03 §10.5
Fields
NameTypeRequiredMeaning and constraints
sourceenum InvalidRequestSourceYesWhere the error is.
body|query|path|header; unknown treated as body
pointerstringNoOffending member.
required when source is body; RFC 6901 JSON Pointer
namestringNoParameter or header name.
required when source isn't body
reasonenum InvalidRequestReasonYesKind of failure.
unknown treated as other
detailstringNoPlain-text detail for developers.

MiscIdentifierGrammars other

server-kid = canonical-domain "#" key-id; key-id = 132(ALPHA / DIGIT / "." / "" / "-"); mls-group-id = %s"sv1:" canonical-domain ":" ctx-ref ":" generation; generation = "0" / (%x31-39 15DIGIT); idempotency-key = 164(ALPHA / DIGIT / "-" / "." / "" / "~"); cursor = 1512(ALPHA / DIGIT / "-" / "." / "_" / "~"); problem-instance = %s"urn:uuid:" uuid7.

Specification
03 §8.4

PolicyAndLimitNames other

policy-name = 164(LCALPHA / DIGIT / "_" / "." / "-"); limit-name = %s"max" thing unit; thing = (%x41-5A 1(LCALPHA / DIGIT)); unit = %s"Bytes" / %s"Ms" / (%x41-5A 1LCALPHA).

Specification
03 §15.1, §16.1

ProblemObject object

RFC 9457 problem details (application/problem+json) for HTTP errors; also d of a WebSocket error, and problem in SubscriptionResult, session.subscription_ended and session.closing.

Specification
03 §10.1
Fields
NameTypeRequiredMeaning and constraints
typestringYesClients use code, not type.
urn:sloppyv:error: followed by code
codestringYesThe registered error code.
error-code grammar (§10.4)
titlestringYesShort summary; clients don't parse it.
at most 200 characters; English unless server honours Accept-Language
statusintegerYesThe HTTP status.
over HTTP MUST equal the response status
detailstringNoHuman-readable detail.
at most 1,000 characters
instancestringNoIdentifies this occurrence; server logs it.
urn:uuid:<UUIDv7> (problem-instance grammar)
retryablebooleanYesWhether the same request may succeed later without any change.
retryAfterMsinteger|nullNoMinimum delay before retrying.
absent or null = no hint; required for core.rate_limited
userActionUserActionYesOne-tap fix the client offers, as the code's registry entry defines.
unknown value treated as none
dataobjectNoCode-specific structured data defined by the code's owner.

ProtocolVersion other

version = major "." minor; major = %x31-39 *2DIGIT; minor = "0" / (%x31-39 *3DIGIT).

Specification
03 §12.1

SessionClosing object

Payload d of session.closing (see events).

Specification
03 §5.10
Fields
NameTypeRequiredMeaning and constraints
reasonClosingReasonYesClose reason.
reconnectbooleanYesReconnect automatically?
retryAfterMsintegerNoMinimum reconnect delay.
problemProblemObjectNoFor session_ended, unauthenticated, unsupported_version, rate_limited.

StreamName other

stream = ctx-ref / %s"me" / %s"community". me and community are never context references and never appear in a {ctx} path parameter.

Specification
03 §8.3

SubscriptionResult object

Outcome of subscribing one stream, in session.ready and session.subscribed.

Specification
03 §5.6
Fields
NameTypeRequiredMeaning and constraints
streamstringYesThe stream.
stream name (§8.3)
levelenum SubscriptionLevelYesSubscription level.
full|heads
statusenum SubscriptionStatusYesResult.
ok|refused; unknown treated as refused
headSeqintegerNoStream's latest seq when the subscription took effect.
required when ok; 0 if the stream has no events yet
replayThroughintegerNoEvents from requested position + 1 up to this value are replays.
equal to headSeq; present only when replay follows
problemProblemObjectNoWhy refused; core.not_found (never core.forbidden) for contexts the caller may not know about.
required when refused

TimelinePage object

Response of timeline endpoints (owned by 11) paged by seq with before/after/limit.

Specification
03 §13.1
Fields
NameTypeRequiredMeaning and constraints
itemsarray<object>YesTimeline items, each with its seq (item objects owned by 11).
always ascending seq order whichever direction; seq values not contiguous
hasMorebooleanYesWith before or neither: older items visible to caller exist. With after: newer items exist up to headSeq.
empty page has hasMore false
headSeqintegerYesStream head when the page was read; used by §7.5 resync.
never advances the client position

Also described in 00 §7.10.

Timestamp other

timestamp = date %s"T" time "." 3DIGIT %s"Z" — RFC 3339 UTC, exactly 3 fractional digits, uppercase Z. Producers emit exactly this; consumers SHOULD accept any RFC 3339 date-time, converting to UTC and truncating to ms.

Specification
03 §9

UUIDv7 other

uuid7 = 8LHEX "-" 4LHEX "-" %x37 3LHEX "-" uuid-var 3LHEX "-" 12LHEX; uuid-var = 8/9/a/b; lowercase hex only, 36 chars. RFC 9562 §5.7; rand_b from CSPRNG; binary form = 16 bytes in hex-string order.

Specification
03 §8.2

WithheldPayload object

D4a withheld form of a durable event's d for a subscriber who may see nothing of the payload: same t, ctx, seq, id, ts; d = {"withheld": true}. Owner MAY add members identifying the affected object (e.g. 11's target). withheld is reserved in every durable payload.

Specification
03 §7.2
Fields
NameTypeRequiredMeaning and constraints
withheldbooleanYesClient advances P past the event and does nothing else; never shown as a timeline item; doesn't count toward lastItemSeq.
true

Also described in 09 §7.2, §14.1.

ClientSocketState enum

Specification
03 §5.3
Values
ValueMeaning
idleNo socket needed.
connectingHandshake in progress.
awaiting_readyhello sent, waiting up to 15 s for session.ready.
readyOperating.
backoffWaiting to reconnect.
stoppedUpdate required or unrecoverable auth.

CloseCode enum

Specification
03 §5.10
Values
ValueMeaning
1000Normal closure by the client.
1001Going away; reconnect with backoff if still needed.
1002WebSocket protocol violation; reconnect with backoff, diagnostic.
1003Binary message; reconnect with backoff, diagnostic.
1007Invalid UTF-8; reconnect with backoff, diagnostic.
1009too_large; reconnect with backoff, diagnostic.
1011Internal server error; reconnect with backoff.
1012server_shutdown; reconnect after retryAfterMs or random 1-10 s.
1013Try again later; reconnect after retryAfterMs or backoff of at least 5 s.
4000protocol_error; reconnect with backoff, diagnostic. Browser substitute for 1002/1003/1007/1009.
4001unauthenticated; recover token (§3.3), reconnect at once first time after recovery, else backoff.
4004session_ended; don't reuse token; follow problem userAction; remote sessions recreated silently.
4008hello_timeout/idle_timeout; reconnect at once, then with backoff.
4010replaced; reconnect silently once only if no other local instance known (§5.12).
4011slow_consumer; backoff at least 1 s; SHOULD move unviewed streams to heads (never a call's context).
4026unsupported_version; stop, show update required.
4029rate_limited; reconnect after retryAfterMs or 60 s.

ClosingReason enum

Specification
03 §5.10
Values
ValueMeaning
too_largeClose 1009: a message exceeded maxEventBytes.
server_shutdownClose 1012: restart or connection moved.
protocol_errorClose 4000: invalid envelope or hello payload, message before hello.
unauthenticatedClose 4001: token invalid/expired/revoked at hello, or auth deadline passed without reauth.
session_endedClose 4004: the client session ended.
hello_timeoutClose 4008: no hello within 10 s.
idle_timeoutClose 4008: no message for 75 s.
replacedClose 4010: a newer socket of the same client session took over.
slow_consumerClose 4011: client couldn't keep up.
unsupported_versionClose 4026: protocol below minClient or unknown envelope v.
rate_limitedClose 4029: too many client messages or connections.

EventClass enum

Specification
03 §7.2, §11.2
Values
ValueMeaning
durableHas seq in exactly one stream, retained for replay, delivered to every full subscriber.
ephemeralNo seq, never replayed, at most once, may be coalesced/dropped.
s2sS2S-only types carried by 06's S2S envelope.

Also described in 00 §7.4.

Feature enum

Specification
03 §12.2
Values
ValueMeaning
voice-dc/1Owner 16. Servers mandatory; mandatory for Full and Web clients, optional for Bot clients. Voice frames over WebRTC data channels through the hosting server's relay (D-094).
video-dc/1Owner 17. Servers mandatory; mandatory for Full and Web clients, optional for Bot clients. Screen share and webcam over data channels.
sfu-rtp/1Owner 17. Optional for servers, required for SFU-capable server class; mandatory for Full and Web clients, optional for Bot. RTP via SFU.
webhooksOwner 11. Optional for servers; not applicable to clients. Webhooks in insecure contexts.

IdempotencyConflictReason enum

Specification
03 §10.5, §14
Values
ValueMeaning
mismatchKey or client-generated ID reused with a different fingerprint; retryable false.
in_progressFirst request with that key still processing; retryable true, retryAfterMs >= 500.

InvalidRequestReason enum

Specification
03 §10.5
Values
ValueMeaning
missingMissing.
typeWrong type.
formatBad format.
rangeOut of range.
lengthBad length.
enumNot an allowed enum value.
duplicateDuplicate.
not_allowedNot allowed.
otherOther; fallback for unknown values.

InvalidRequestSource enum

Specification
03 §10.5
Values
ValueMeaning
bodyRequest body (fallback for unknown).
queryQuery parameter.
pathPath parameter.
headerHeader.

NotFoundReason enum

Specification
03 §10.5, §2.1
Values
ValueMeaning
unknown_endpointcore.not_found data.reason: server doesn't implement the endpoint; caller treats feature as absent. Unknown values ignored.

RateLimitPolicy enum

Specification
03 §15.1
Values
ValueMeaning
sessionPer client session.
ipPer IPv4 address / IPv6 /64.
peerPer federation peer (canonical domain of S2S token iss).
socketClient messages on the WebSocket.
handshakeWebSocket handshakes per IP address.

Also described in 08 §15, §5.7, §6.10.

ResyncReason enum

Specification
03 §7.5
Values
ValueMeaning
gap_too_largeH − P > maxReplayEvents. Fallback for unknown values.
expiredEvents no longer retained.
aheadP > H; client MUST discard event-derived cached state.
access_changedRead access lapsed and was regained after P (or server can't tell).
buffer_overflowServer dropped queued durable events under backpressure (§7.6).
server_resetStream deleted and recreated / renumbered; client MUST discard event-derived cached state.

ServerSocketState enum

Specification
03 §5.3
Values
ValueMeaning
awaiting_helloHandshake done, up to 10 s for session.hello.
readyAuthenticated.
closedClosed.

SubscriptionLevel enum

Specification
03 §5.6
Values
ValueMeaning
fullSocket receives every durable and ephemeral event of the stream.
headsSocket receives only session.heads updates; context references only.

SubscriptionStatus enum

Specification
03 §5.6
Values
ValueMeaning
okSubscribed.
refusedRefused; problem explains. Unknown values treated as refused.

UnknownEnumRule enum

Specification
03 §12.3
Values
ValueMeaning
fallbackTreat as a named known value.
ignore itemIgnore the containing array element or object (client default when unspecified).
rejectWhole message invalid; only where other readings could be unsafe.

UserAction enum

Specification
03 §10.2
Values
ValueMeaning
noneNothing the user can do; show short failure message, no button. Fallback for unknown values.
retryTrying again may work; offer Try again; retry automatically first where §2.7 allows.
waitTemporary overload/unavailability; retry automatically after retryAfterMs; waiting state only if user waits > 2 s.
sign_inClient session gone; recover silently first (§3.3), then home sign-in screen (M1). Only the home server can cause this screen.
enable_encryptionAccount must turn on encryption; show G1 (M4), resume action afterwards.
set_up_deviceDevice must be set up for encryption; show G2 (pairing M5 or recovery key), resume afterwards.
update_appApp too old for this server; show update required screen.
contact_adminOnly the operator can fix; offer ServerMetadata contact info and show instance.

Also described in 00 §7.9.

04 Cryptographic conventions

Argon2idParams object

Parameters of a stored Argon2id computation (e.g. KeyBackup kdf, 08 §5.1). Output length is always 32 bytes and isn't carried. Unknown members ignored.

Specification
04 §12.2
Fields
NameTypeRequiredMeaning and constraints
algstringYesAlgorithm
"argon2id"; other → crypto.unsupported_algorithm
vintegerYesArgon2 version (0x13)
19
mintegerYesMemory in KiB
65,536 to 262,144 (KiB); producers use 65,536
tintegerYesPasses
3 to 10; producers use 3
pintegerYesLanes
1
saltbase64urlYesSalt
exactly 16 bytes decoded (22 chars); from CSPRNG

CPace values in 08 pairing messages (cpace_a, cpace_b, confirm_a) other

08 owns the message bodies (08 §6.6.2); 04 defines the byte values, each base64url-encoded in the body. cpace_a (initiator): cred, ya, ad. cpace_b (responder): yb, ad, tb. confirm_a (initiator): ta.

Specification
04 §11.4
Fields
NameTypeRequiredMeaning and constraints
credenum CPacePrsKindYesHow the user entered the secret
"qr" (prs_kind 1) or "code" (prs_kind 2); in cpace_a
yabase64urlYesInitiator share Ya
32 bytes; in cpace_a
ybbase64urlYesResponder share Yb
32 bytes; in cpace_b
adbase64urlYesAssociated data
26 bytes CPaceAD (ADa in cpace_a, ADb in cpace_b)
tbbase64urlYesResponder confirmation tag
32 bytes HMAC(K_cb, transcript); in cpace_b
tabase64urlYesInitiator confirmation tag
32 bytes HMAC(K_ca, transcript); in confirm_a

CPaceAD tls-record

CPace associated data for each party, TLS-encoded, 26 bytes: 0x08 || role || 0x01 || did. ADa uses role "sv1 init" and the initiator's did; ADb uses "sv1 resp" and the responder's did. Receiver must check role, version = 1 and the expected peer did.

Specification
04 §11.3
Fields
NameTypeRequiredMeaning and constraints
roleopaque<V>YesCPace role label
"sv1 init" or "sv1 resp"
versionuint8YesProfile version
1
didopaque[16]YesSender device ID
binary device ID of the sending device

CPaceChannelIdentifier (CI) binary-frame

CI = lv_cat("sv1 pair ci", u8(prs_kind), pairing_id, address); pairing_id is the 16-byte binary pairing session UUIDv7, address the UTF-8 canonical account address. sid = pairing_id.

Specification
04 §11.3
Fields
NameTypeRequiredMeaning and constraints
labelbytesYesDomain separation
"sv1 pair ci"
prs_kinduint8YesSecret kind
1 (QR) or 2 (6-digit code)
pairing_idopaque[16]YesPairing session ID
binary UUIDv7
addressbytesYesAccount address
UTF-8 canonical address

Ed25519Jwk object

Every Ed25519 public key in JSON or a JWS payload is an RFC 7517/8037 OKP JWK. Identity keys and DSKs (ik, dsk) carry exactly kty, crv, x; other owners (02) may add non-key metadata members, which never enter a thumbprint. Never contains d or other private members.

Specification
04 §5.1
Fields
NameTypeRequiredMeaning and constraints
ktystringYesKey type
"OKP"
crvstringYesCurve
"Ed25519"
xbase64urlYesPublic key bytes
canonical base64url of the 32-byte public key (43 chars); must pass §4.3 items 1 and 2

HpkeKeyWrap (VaultKeyGrant / HistoryShare key wrap crypto) other

HPKE RFC 9180 base mode, single-shot SealBase/OpenBase, KEM 0x0020, KDF 0x0001, AEAD 0x0002, fresh ephemeral key each time, empty AAD, info per §8.5. Output enc 32 bytes, ciphertext = plaintext length + 16. Object layouts owned by 08 §10.3 and 14 §7.5.

Specification
04 §9.8
Fields
NameTypeRequiredMeaning and constraints
encbase64urlYesHPKE encapsulated key
32 bytes (raw X25519)
ciphertextbytesYesSealed key
len(plaintext) + 16

JwsCommonClaims (time and audience profile) object

Profile rules every JWS payload follows; owners define the rest of the claims. Unknown claims are ignored.

Fields
NameTypeRequiredMeaning and constraints
iatinteger (NumericDate)YesIssued-at
JSON integer 0 to 2^53 − 1, no fraction/exponent; valid only if iat <= now + 60
expinteger (NumericDate)NoExpiry
Required/Forbidden/Optional per typ registry; > iat; exp − iat <= type max lifetime; valid only if now < exp + 60
nbfinteger (NumericDate)NoNot-before
Only on types whose owner defines it; >= iat; valid only if nbf <= now + 60; present on any other type → crypto.invalid_claims (forbidden)
audstringNoAudience
Only if owner defines it; single string (canonical domain, or URL for sv-relay+jwt / sv-push+jwt); array → crypto.invalid_claims (array)
issstringNoIssuer (server-signed types)
canonical domain for server-class types; must equal domain part of kid

JwsProtectedHeader object

I-JSON object with exactly three members alg, typ, kid. Any other member (jwk, jku, x5u, x5c, x5t, x5t#S256, crit, b64, zip, cty, enc, nonce, anything else) is rejected with crypto.header_rejected. Decoded size at most 1,024 bytes. Producers SHOULD serialize in order alg, typ, kid with no white space; verifiers accept any order.

Specification
04 §6.2, §6.4
Fields
NameTypeRequiredMeaning and constraints
algstringYesSignature algorithm
"EdDSA" only (Ed25519 key); else crypto.unsupported_algorithm
typJwsTypYesObject type
value from the §6.3 registry; byte-for-byte, case-sensitive; must equal the type the context expects, else crypto.wrong_type
kidstringYesSigning key ID; a cross-check, not a pointer
server-kid (<canonical-domain>#<key-id>, key-id 1-32 of ALPHA/DIGIT/./_/-) for Server class; 43-char key thumbprint (ikf or dkf) for Identity and Device classes

Also described in 00 §7.13.

LabelledSignatureInput binary-frame

Bytes signed by a labelled signature: "sv1 sig" || 0x00 || label || 0x00 || content. Only DSKs make labelled signatures in v1. In JSON the signature is base64url of 64 bytes (86 chars). content is an owner-defined injective binary encoding that starts with a uint8 version and is never JSON.

Signed by
DSK
Specification
04 §7.1, §7.2
Fields
NameTypeRequiredMeaning and constraints
prefixbytesYesDomain separator for labelled signatures
ASCII "sv1 sig" followed by 0x00
labelSignatureLabelYesRegistered label (§7.3)
ASCII, 1-32 chars, lc-alnum *31(lc-alnum / "-"), followed by 0x00
contentbytesYesSigned content
owner-defined, injective, starts with uint8 version, binds context/object ID/epoch

SVF1Blob binary-frame

blob = SVF1Header || C_0 || ... || C_(n−1). Plaintext framed = u64(len(file)) || file || zero padding to bucket P = pad(len(file)+8); cut into 65,536-byte segments (last 4,096..65,536). C_i = AES-256-GCM(K_enc, N_i, header, segment_i) incl. 16-byte tag; N_i = nonce_prefix || u32(i) || u8(f), f = 1 only for the last segment. Blob size 43 + P + 16·n; segment i starts at 43 + 65552·i.

Specification
04 §10.3, §10.4
Fields
NameTypeRequiredMeaning and constraints
headerSVF1HeaderYesHeader
43 bytes
segmentsarray<bytes>YesSegment ciphertexts with tags
n = ceil(P / 65536); each 65,552 bytes except possibly the last (>= 4,112)

SVF1Header tls-record

43-byte header of an SVF1 encrypted attachment blob; also the AAD of every segment.

Specification
04 §10.4
Fields
NameTypeRequiredMeaning and constraints
magicopaque[4]YesFormat magic/version
"SVF1" = 0x53 0x56 0x46 0x31
nonce_prefixopaque[7]YesNonce prefix for all segments
random per blob from CSPRNG
commitmentopaque[32]YesKey commitment, checked in constant time before decrypting
HKDF-Expand(K_file, "sv1 file kc", 32)

SvJws (compact JWS) jws

Every Sloppy Voice signed object outside MLS and SFrame (except the VAPID JWT) is a compact-serialization JWS: b64-header "." b64-payload "." b64-signature (signature exactly 86 chars / 64 bytes). Signing input is the ASCII of header.payload as transmitted. Stored, relayed and embedded as the exact string; never decoded and re-encoded. No JSON serialization, detached/unencoded payload, alg none or JWE.

Signed by
Depends on typ signer class: server sign key, identity key, or DSK
Specification
04 §6.1
Fields
NameTypeRequiredMeaning and constraints
b64-headerbase64urlYesProtected header
canonical; decodes to JwsProtectedHeader <= 1,024 bytes
b64-payloadbase64urlYesClaims defined by the type owner
canonical; decodes to I-JSON object, UTF-8, <= 8 nesting levels, no duplicate members, no lone surrogates
b64-signaturebase64urlYesSignature
exactly 86 chars (64 bytes); Ed25519 strict verification §4.3

SvTestJwt (sv-test+jwt payload) jws

Test-vector-only JWS type. No production verifier expects it. Max lifetime 300 s, max size 8,192 bytes; does not define nbf.

Signed by
Any
Specification
04 §6.3 item 4
Fields
NameTypeRequiredMeaning and constraints
issstringYesIssuer
substringYesSubject
iatinteger (NumericDate)YesIssued-at
§6.6
jtibase64urlYesUnique ID
16 to 64 bytes
expinteger (NumericDate)NoExpiry
exp − iat <= 300
audstringNoAudience
single string

TestVector object

One test vector. Inside inputs/outputs, member names ending Hex = lowercase hex bytes, B64 = canonical base64url bytes, Utf8 = text; other strings verbatim wire values; integers JSON numbers; times NumericDate named now, iat...; large inputs as generator {"pattern": "i mod 251", "length": N} with sha256Hex.

Specification
04 §16.2
Fields
NameTypeRequiredMeaning and constraints
idstringYesVector ID
<NN>-<name>-<n>, unique in repository, e.g. "04-thumbprint-1"
sectionstringYesSection of the owning document
e.g. "§5.2"
operationstringYesWhat is computed
e.g. "jwk-thumbprint", "ed25519-verify", "hkdf-expand", "svf1-encrypt"
descriptionstringNoFor humans
one line
inputsobjectYesInputs
every input, including values otherwise random
expectenum TestVectorExpectYesExpected kind of result
"value", "accept" or "reject"
outputsobject|nullYesExpected outputs
null when expect is accept/reject or status is tbd
errorstringNoExpected crypto.* or owner code
only with reject
statusenum TestVectorStatusYesWhether outputs are computed
"final" or "tbd"

TestVectorFile object

Machine-readable vector file, spec/vectors/<NN>-<topic>.json (e.g. 04-crypto.json; pending).

Specification
04 §16.2
Fields
NameTypeRequiredMeaning and constraints
formatstringYesFormat name
"sv1-test-vectors"
formatVersionintegerYesFormat version
1
suitestringYesCrypto suite
"sv1-c1"
documentstringYesOwning document number
e.g. "04"
vectorsarray<TestVector>YesVector objects

X25519Jwk (DeviceCertificate dbk) object

The only place an X25519 public key appears as a JWK: the dbk claim of a DeviceCertificate (07 §4.1). Exactly kty, crv, x. Ed25519 checks of §4.3 don't apply. Elsewhere in JSON (BoxKey pub, HPKE enc) X25519 keys are raw 32-byte base64url.

Specification
04 §5.1
Fields
NameTypeRequiredMeaning and constraints
ktystringYesKey type
"OKP"
crvstringYesCurve
"X25519"
xbase64urlYesX25519 box public key; compared with raw keys by these 32 bytes
32 bytes

CPacePrsKind (08 cred) enum

Specification
04 §11.3
Values
ValueMeaning
1 / "qr"User scanned the QR code; PRS = 16-byte QR secret
2 / "code"User typed the 6-digit code; PRS = ASCII of 6 digits with leading zeros

CryptoInvalidClaimsReason enum

Specification
04 §15.1
Values
ValueMeaning
missingRequired time claim missing
typeNot an integer
forbiddenPresent when forbidden (incl. nbf on a type that doesn't define it)
orderOrdered wrongly (e.g. exp <= iat, nbf < iat)
lifetimeOver the maximum lifetime
arrayaud is an array

CryptoMalformedReason enum

Specification
04 §15.1
Values
ValueMeaning
encodingBad/non-canonical base64url
lengthWrong decoded length (or SVF1 length rules)
jsonInvalid or duplicate-member JSON, not an I-JSON object
structureWrong structure (JWS parts, SVF1 magic)
sizeOver the size limit
depthNested more than 8 levels

CryptoSuite enum

Specification
04 §2.1, §2.3
Values
ValueMeaning
sv1-c1The only v1 suite; implied by protocol version, never listed or carried
sv1-c2Reserved for a future post-quantum hybrid suite; v1 must treat as unsupported

Also described in 00 §7.15.

DecryptFailedReason enum

Specification
04 §15.2
Values
ValueMeaning
tagAEAD/HPKE tag failure, incl. truncation/extension of SVF1
commitmentKey commitment mismatch
formatSVF1 too short, wrong magic or last segment too short
paddingSVF1 size/bucket mismatch or non-zero padding
content_hashDecrypted attachment doesn't match AttachmentRef size/sha256

DomainSeparationString (hashes, HPKE, CPace) enum

Specification
04 §8.5
Values
ValueMeaning
sv1 dmSHA-256("sv1 dm" || 0x00 || P1 || 0x0A || P2), P1 < P2 canonical addresses; DM context ID dm: + base64url(first 16 bytes); owner 12
sv1 upgrade planSHA-256 upgrade plan version (09 §10.6); owner 09
sv1 vault grantHPKE info for VaultKeyGrant; owner 08
sv1 history-shareHPKE info: "sv1 history-share" || 0x00 || mid16(shareId) || did16(did); owner 14
sv1 pair ciCPace channel identifier; owner 04
sv1 initCPace ADa role label; owner 04
sv1 respCPace ADb role label; owner 04
sv1 safetyIterated SHA-512 safety-number chain prefix; 5,200 rounds; owner 07

ForbiddenJwsHeaderMembers (explicitly named; every other non-alg/typ/kid member too) enum

Specification
04 §6.2
Values
ValueMeaning
jwkRejected with crypto.header_rejected
jkuRejected with crypto.header_rejected
x5uRejected with crypto.header_rejected
x5cRejected with crypto.header_rejected
x5tRejected with crypto.header_rejected
x5t#S256Rejected with crypto.header_rejected
critRejected with crypto.header_rejected
b64Rejected with crypto.header_rejected
zipRejected with crypto.header_rejected
ctyRejected with crypto.header_rejected
encRejected with crypto.header_rejected
nonceRejected with crypto.header_rejected

JwsTyp enum

Specification
04 §6.3
Values
ValueMeaning
sv-assert+jwtHomeAssertion; Server class (home server); iss; exp Required; max lifetime 300 s; max size 4,096 bytes; owner 06
sv-devproof+jwtDeviceProof; Device class (DSK); exp Required; 60 s; 1,024 bytes; owner 06
sv-s2s+jwtS2S request token; Server class (sending server); iss; exp Required; 60 s; 4,096 bytes; owner 06
sv-relay+jwtRelayTicket; Server class (hosting server); iss; exp Required; 60 s; 8,192 bytes; owner 15
sv-push+jwtPush gateway request token; Server class (home server); iss; exp Required; 60 s; 4,096 bytes; owner 19
sv-idstate+jwtIdentityState; Server class (home server); iss; exp Required; 86,400 s (24 h); 32,768 bytes; owner 07
sv-idcert+jwtIdentityCertificate; Identity class; exp Forbidden; until reset; 2,048 bytes; owner 07
sv-devcert+jwtDeviceCertificate; Identity class; exp Forbidden; until revoked or reset; 2,048 bytes; owner 07
sv-devrevoke+jwtDeviceRevocation; Identity class; exp Forbidden; permanent; 1,024 bytes; owner 07
sv-keyrot+jwtKeyRotation; Server class (previous active sign key for a new sign key, current active sign key otherwise; 02 §12.1); iss; exp Forbidden; permanent; 2,048 bytes; owner 02
sv-test+jwtTest vectors only; Any signer; exp Optional; 300 s; 8,192 bytes; owner 04; rejected by every production verifier

Also described in 00 §7.13.

KdfLabel (HKDF/HMAC label registry) enum

Specification
04 §8.4
Values
ValueMeaning
sv1 ekidHKDF-Expand(K_hist(e), "sv1 ekid", 8): epoch key ID; owner 14
sv1 msgHKDF-Expand(K_hist(e), "sv1 msg" || mid16, 32): K_msg; no separator; prefix reserved; owner 14
sv1 kcHMAC(K_msg, "sv1 kc") truncated to 16: key commitment kc; owner 14
sv1 linkReserved and retired; owner 14
sv1 anchorReserved and retired; owner 14
sv1 vaultHKDF-Expand(K_vault, "sv1 vault" || 0x00 || context): 32 bytes (8 for key check value); owner 08
sv1 vault idHMAC(K_vid, "sv1 vault id" || 0x00 || context) truncated to 16: vault record IDs and buckets; owner 08
sv1 backupHKDF-Expand(Argon2id output, "sv1 backup" || 0x00 || lv(addr), 32): KeyBackup key; owner 08
sv1 pairHKDF-Expand(CPace ISK, "sv1 pair" || 0x00 || u8(dir), 32), dir 0x01 payload / 0x02 ack; owner 08
sv1 file keyHKDF-Expand(K_file, "sv1 file key", 32): SVF1 K_enc; owner 04
sv1 file kcHKDF-Expand(K_file, "sv1 file kc", 32): SVF1 commitment; owner 04
sv1 cpace kcHKDF-Expand(ISK, "sv1 cpace kc", 64): K_ca || K_cb; owner 04
sv1 push collapseHMAC(K_coll, "sv1 push collapse" || 0x00 || opaque(topic)) truncated to 16: push collapse keys; owner 19

MlsExporterLabel enum

Specification
04 §8.6
Values
ValueMeaning
sv1 historyContext empty, length 32: K_hist(e); owner 14
SFrame 1.0 Base KeyContext empty, length 16: SFrame epoch secret per RFC 9605 §5.2; owner 18

Also described in 00 §7.15.

PairKeyDirection (sv1 pair u8(dir)) enum

Specification
04 §8.4
Values
ValueMeaning
0x01Pairing payload key
0x02Pairing ack key

PakeFailedReason enum

Specification
04 §15.2
Values
ValueMeaning
malformedMalformed message (mapping inferred from §11.7's failure list; §15.2 gives only the names)
versionAD with an unknown version (inferred)
peer_mismatchAD with the wrong role or did (inferred)
identity_elementNeutral-element result for K (inferred)
confirmationConfirmation tag mismatch (per V-11d)
timeoutTimeout set by 08 (inferred)

RngFailureReason enum

Specification
04 §15.2
Values
ValueMeaning
unavailableCSPRNG unavailable
errorCSPRNG returned an error

SignatureLabel enum

Specification
04 §7.3
Values
ValueMeaning
sealedDSK; SealedMessage header fields and ciphertext; owner 14
history-shareDSK; HistoryShare fields and bundle ciphertext (14 §7.5); owner 14
history-linkReserved and retired; must not be signed, accepted or reused; owner 14
media-attestDSK; MediaAttestation (18 §9.2, §9.4); owner 18
vault-box-keyDSK; box key binding: address, did, identity generation, X25519 box public key (08 §10.1); owner 08
vault-generationDSK; VaultGenerationTBS (08 §10.2); owner 08
testTest vectors only; owner 04

SignerClass enum

Specification
04 §6.4
Values
ValueMeaning
Serverkid = <canonical-domain>#<key-id>; key from the domain's ServerMetadata keys (02), purpose "sign"; domain must equal issuer claim; one metadata refetch per minute per domain on miss
Identitykid = ikf thumbprint; key is the ik the context expects (in the IdentityCertificate itself, or the one a DeviceCertificate/DeviceRevocation is validated against)
Devicekid = dkf thumbprint; key is the dsk of the expected DeviceCertificate

TestVectorExpect enum

Specification
04 §16.2
Values
ValueMeaning
valueCompute outputs
acceptVerification accepts
rejectVerification rejects with error

TestVectorStatus enum

Specification
04 §16.2
Values
ValueMeaning
finalOutputs computed
tbdOutputs not computed yet

05 Accounts, login, sessions, devices and bots

Account object

A user or bot account at its home server.

Specification
05 §11.1
Fields
NameTypeRequiredMeaning and constraints
addressstringYescanonical address (01); never changes
namestringYesDisplay name; prepared local part if no other capitalization/spacing chosen or it collided at registration. Receivers apply 01 §6.4 and fall back to the local part (01 §6.5).
never empty; linked to local part (01 §6.1), meets 01 §6.2
kindAccountKindYesuser | bot; never changes; unknown treated as bot
incbase64urlYesAccount incarnation (D-086). Other servers key on (address, inc).
16 CSPRNG bytes, base64url no padding, 22 chars (did grammar); immutable; never reused for a local part
stateAccountStateYes§11.2.
active | upgrade_required | suspended | deleted; unknown treated as suspended
securityAccountSecurityYesinsecure | secure; always equals sec claim of latest IdentityState (07)
igenintegerYesIdentity generation from latest IdentityState (07).
0 for never-secure accounts
aboutstringYesplain text, 0-190 code points, at most 4 line breaks; empty string when unset
avatarAvatar|nullYes§11.7.
profileVersionintegerYesstarts at 1; +1 on every change to name, about or avatar
createdAttimestampYes
ownerstringNoLocal account that owns the bot (§15.1).
bots only; canonical address

AccountDeletedPayload object

d of account.deleted (client and S2S).

Specification
05 §16.3
Fields
NameTypeRequiredMeaning and constraints
addrstringYesCanonical address.
kindAccountKindYesuser | bot
incbase64urlYesReceivers apply only to this incarnation.
deletedAttimestampYes
igenintegerYesLast identity generation.
0 if never secure
reasonDeletionReasonYesuser | owner | admin | unconfirmed; unknown treated as admin

AccountProfileChangedPayload object

d of account.profile_changed (S2S).

Specification
05 §17.4
Fields
NameTypeRequiredMeaning and constraints
addrstringYes
incbase64urlYes
profileVersionintegerYesNew version.

AccountSuspendedPayload object

d of account.suspended (S2S).

Specification
05 §11.8
Fields
NameTypeRequiredMeaning and constraints
addrstringYes
incbase64urlYesApply only to this incarnation.
kindAccountKindYesuser | bot
suspendedAttimestampYes

AuthorizationRedirect other

Query parameters of the 302 from /v1/auth/callback or /v1/auth/consent to the client's redirect_uri (§6.6). The client MUST check state and iss and discard the response otherwise.

Specification
05 §6.6
Fields
NameTypeRequiredMeaning and constraints
codestringNoOn success.
svc_ + 43 base64url chars; single use; 60 s
statestringYesThe client's state, echoed.
issstringYesIssuer identifier.
the home server's base URL (RFC 9207)
errorstringNoOn failure.
RFC 6749 §4.1.2.1 code (access_denied, invalid_request, temporarily_unavailable, server_error)
error_descriptionstringNoOn failure.
sv_codestringNoOn failure.
this document's error code, e.g. auth.access_denied

AuthorizationTransaction other

Server-side state for one pass through /authorize: client params, intent, bound account/device (reauth, link), provider, upstream state/nonce/PKCE verifier, cookie hash, start time, state (§6.7).

Specification
05 §6.3

Avatar object

Avatar descriptor inside Account and PublicProfile.

Specification
05 §11.1
Fields
NameTypeRequiredMeaning and constraints
urlstringYes{base}/v1/users/{local}/profile/avatar?v={profileVersion}
sha256base64urlYesSHA-256 of served image bytes.
contentTypestringYesimage/png | image/jpeg | image/webp
widthintegerYes1-1024 pixels
heightintegerYes1-1024 pixels

Bot object

A bot with its active devices.

Specification
05 §15.3
Fields
NameTypeRequiredMeaning and constraints
accountAccountYeskind bot, has owner
devicesarray<DeviceRecord>Yesactive devices only

BotTokenResponse object

201 response of POST /v1/bots/{local}/tokens.

Specification
05 §15.4
Fields
NameTypeRequiredMeaning and constraints
tokenstringYessvb_
deviceDeviceRecordYes

BotTokenRotateResponse object

200 response of token rotation.

Specification
05 §15.4
Fields
NameTypeRequiredMeaning and constraints
tokenstringYessvb_
deviceDeviceRecordYes
oldTokenValidUntiltimestampYes

ClientIdMetadataDocument object

JSON served at the client_id URL (GET <client_id>, Accept: application/json); fetched by the home server over HTTPS, no redirects, public addresses only, 5 s timeout, <=16 KiB, cached 5 min-24 h.

Specification
05 §5.1
Fields
NameTypeRequiredMeaning and constraints
client_idstringYesMUST equal the fetch URL exactly
client_namestringYesShown on Continue page.
1-64 characters
redirect_urisarray<string>Yes§5.2.
1-10 entries
client_uristringNoHome page.
HTTPS
logo_uristringNoHTTPS; servers MAY ignore

ConsentForm other

application/x-www-form-urlencoded form posted by the server's own Continue page.

Specification
05 §5.4
Fields
NameTypeRequiredMeaning and constraints
txbase64urlYesConsent token embedded in the page form.
43 chars (32 random bytes); single use
decisionConsentDecisionYescontinue | cancel

CreateBotRequest object

Body of POST /v1/bots.

Specification
05 §15.2
Fields
NameTypeRequiredMeaning and constraints
namestringYesBot display name.
local part derived and checked as at sign-up (§8.4 step 5)
aboutstringNo§11.1 limits
deviceNamestringNoName of first token's device.
default 'Bot token 1'
expiresAttimestampNoExpiry of first token.
at most 2 years ahead

CreateBotResponse object

201 response of POST /v1/bots; token shown only once.

Specification
05 §15.2
Fields
NameTypeRequiredMeaning and constraints
botBotYes
tokenstringYessvb_; shown only once

DeviceAddedPayload object

d of device.added.

Specification
05 §18
Fields
NameTypeRequiredMeaning and constraints
deviceDeviceRecordYes
viaDeviceAddedViaYeslogin | signup | bot_token; unknown treated as login

DeviceRecord object

One device = one home session = one token family (or one bot token).

Specification
05 §12.2
Fields
NameTypeRequiredMeaning and constraints
didbase64urlYesDevice ID (§12.4).
16 random bytes, 22 chars, last char A|Q|g|w; never reused
namestringYesUser-renamable.
1-64 code points, no control characters; default device_name or '<Platform> device'
platformPlatformYesSame values as DeviceCertificate plat (07).
desktop|web|ios|android|bot; unknown treated as desktop for logic, generic icon
clientSoftwarestringYes§5.3
stateDeviceStateYesactive | revoked; unknown treated as revoked
enrolledbooleanYes§12.8: did listed in latest IdentityState devices.
always false for insecure account
dkfstringNoDSK fingerprint from IdentityState.
present while enrolled is true
sharedComputerbooleanYes§12.6; fixed for life of record.
providerstring|nullYesProvider ID used to create the session.
null for bot devices
authAttimestamp|nullYesMost recent provider-leg completion (sign-in, sign-up or reauth). Equals 08 DeviceSummary authAt.
null for bot devices
createdAttimestampYes
lastSeenAttimestampYesLast activity (§12.5).
at most 60 s stale
expiresAttimestamp|nullYesuser devices: lastSeenAt + inactivity limit; bot: token expiry; null for bot without expiry and for every revoked device
revokedAttimestampNopresent when revoked
revokedReasonRevokedReasonNo§12.3.
present when revoked
currentbooleanYestrue only for the device the request was made from.
tokenHintstringNobot devices only; last 4 characters of the bot token
tokenRotatedAttimestampNoWhen the bot token was last issued or rotated.
bot devices only

did other

Device ID: 16 random bytes base64url no padding (22 chars); last char A|Q|g|w.

Specification
05 §12.4

inc other

Account incarnation: 16 random bytes base64url no padding (22 chars), same grammar as did.

Specification
05 §11.1

LinkProviderRequest object

Body of POST /v1/me/providers.

Specification
05 §10.3
Fields
NameTypeRequiredMeaning and constraints
providerstringYesan enabled provider ID; signup flag irrelevant
clientIdstringYesas client_id §5.1
redirectUristringYesas redirect_uri §5.2
codeChallengebase64urlYesas code_challenge
codeChallengeMethodstringYesS256
statestringYesas state
uiLocalesstringNoas ui_locales

LinkProviderResponse object

201 response of POST /v1/me/providers.

Specification
05 §10.3
Fields
NameTypeRequiredMeaning and constraints
requestUristringYesPushed request URI with intent link.
authorizeUrlstringYesFull /v1/auth/authorize URL to open.
expiresInMsintegerYes60000

LinkTokenResponse object

Code-exchange result for intent link: new access token without refresh token, plus link.

Specification
05 §7.3
Fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessva_
token_typestringYesBearer
expires_inintegerYes900
linkProviderLinkYes

LogoutOthersResponse object

200 response for scope others.

Specification
05 §14
Fields
NameTypeRequiredMeaning and constraints
revokedarray<string>Yesdids revoked.

LogoutRequest object

Optional body of POST /v1/auth/logout.

Specification
05 §14
Fields
NameTypeRequiredMeaning and constraints
scopeLogoutScopeNocurrent (default) | others; bots current only; others requires fresh authentication
revocationstringNoDeviceRevocation for this device (as §12.9).
with scope current only

MeResponse object

GET /v1/me response.

Specification
05 §11.5
Fields
NameTypeRequiredMeaning and constraints
accountAccountYes
deviceDeviceRecordYes
authAttimestampNoabsent for bot tokens; equals device.authAt

OAuthProblemDetails object

Problem details at /par and /token: RFC 9457 members plus RFC 6749 error and error_description.

Specification
05 §7.8
Fields
NameTypeRequiredMeaning and constraints
typestringYesurn:sloppyv:error:<code>
codestringYes
titlestringYes
statusintegerYes400/401/429/500/503 per §7.8
detailstringNo
retryablebooleanYes
retryAfterMsinteger|nullNo
userActionstringYes
errorstringYesRFC 6749 §5.2 code
error_descriptionstringNo
dataobjectNo

ProviderConfiguration other

Admin-side provider settings (only id, name, type, icon, signup published).

Specification
05 §4.1
Fields
NameTypeRequiredMeaning and constraints
idstringYesprovider-id = 1*32([a-z0-9_-]); never reused for another issuer
protocolProviderProtocolYesoidc | github; never published
typeProviderTypeYescosmetic
iconstringNo
namestringYes1-64 code points
issuerstringNorequired for oidc
issuerTemplatestringNomulti-tenant, {tenantid}
clientIdstringYesplus client secret or private_key_jwt key
redirectUristringYesfixed {base}/v1/auth/callback
scopesstringNodefault 'openid profile'; email only for labels
signupbooleanNodefault true
enabledbooleanNodefault true

ProviderLink object

Record that an external identity may sign in to the account; the identity key itself is never returned.

Specification
05 §10.1
Fields
NameTypeRequiredMeaning and constraints
linkIduuidv7Yesserver-generated
providerstringYesProvider ID.
providerNamestringYesProvider's name at time of response.
labelstringNoHint to recognise the provider account.
at most 64 characters; built from §4.5 claims at link time, refreshed at each login; shown only to holder
enabledbooleanYesWhether the provider is currently enabled.
linkedAttimestampYes
lastUsedAttimestampNoLast login, reauth or sign-up through this link.
example shows null when never used

PublicProfile object

Public profile returned by GET /v1/users/{local}/profile.

Specification
05 §17.1
Fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address.
namestringYesReceivers MUST apply 01's display-name check and fall back to local part.
never empty
kindAccountKindYesuser | bot; unknown treated as bot
incbase64urlYesIncarnation.
aboutstringYesas §11.1
avatarAvatar|nullYes
profileVersionintegerYes

PushedAuthorizationResponse object

Response of POST /v1/auth/par (snake_case).

Specification
05 §6.1
Fields
NameTypeRequiredMeaning and constraints
request_uristringYessingle use, valid 60 s
expires_inintegerYesSeconds.
60

ReauthTokenResponse object

Code-exchange result for intent reauth: new access token, no refresh token.

Specification
05 §7.3
Fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessva_
token_typestringYesBearer
expires_inintegerYes900
authAttimestampYesNew authAt.

RefreshTokenResponse object

Refresh grant response.

Specification
05 §7.6
Fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessva_
token_typestringYesBearer
expires_inintegerYes900
refresh_tokenstringYessvr_; new token every use
authAttimestampYes

RevokeRequest object

Body of POST /v1/me/devices/{did}/revoke.

Specification
05 §12.9
Fields
NameTypeRequiredMeaning and constraints
reasonRevokeRequestReasonNoremoved (default) | lost_or_stolen; other -> core.invalid_request; ignored for own device
revocationstringNoInvalid one fails whole request with device.revocation_invalid.
DeviceRevocation JWS (sv-devrevoke+jwt, 07) for this did, signed by identity key

RevokeResponse object

200 response of POST /v1/me/devices/{did}/revoke.

Specification
05 §12.9
Fields
NameTypeRequiredMeaning and constraints
deviceDeviceRecordYes
identityStateVerinteger|nullYesver of the IdentityState published by §13 step 3, or null.

ServerMetadataAuth object

Members of ServerMetadata (owned by 02) this document relies on.

Specification
05 §3.3
Fields
NameTypeRequiredMeaning and constraints
auth.providersarray<object>YesEnabled providers in admin order.
entries id, name, type, icon?, signup?
auth.providers[].signupbooleanNoabsent means true
auth.registrationRegistrationYesunknown -> closed
links.termsstringNoPresence means sign-up requires accepting terms.
HTTPS URL

SignupInfo object

The signup member of SignupTokenResponse.

Specification
05 §8.2
Fields
NameTypeRequiredMeaning and constraints
providerstringYesProvider ID used.
providerLabelstringNoLabel of §10.1.
suggestedNamestringNoDisplay-name suggestion (§8.5).
absent if none
suggestedLocalstringNoCanonical local part of suggestedName.
registrationstringYesA closed server never issues sign-up tokens.
open | invite
inviteRequiredbooleanYestrue when registration is invite
termsUrlstringNoPresence means sign-up requires acceptTerms.
copied from ServerMetadata links.terms

SignupRequest object

Body of POST /v1/auth/signup.

Specification
05 §8.4
Fields
NameTypeRequiredMeaning and constraints
namestringYesChosen display name; local part derived by 01's rule (remove white space, PRECIS).
inviteCodestringNo§8.3.
required when inviteRequired
acceptTermsbooleanNorequired when termsUrl set; MUST be true else auth.terms_not_accepted
platformPlatformYesas §7.3; bot refused with core.invalid_request
clientSoftwarestringYes§5.3
deviceNamestringNoas §7.3
sharedComputerbooleanNodefault false; §12.6
setupTokenstringNoOne-time first-admin setup token (21 §11.1 item 7).

SignupTokenResponse object

Code-exchange result for an unknown external identity: a sign-up token instead of a session.

Specification
05 §8.2
Fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessvs_ sign-up token
token_typestringYesBearer
expires_inintegerYes900
signupRequiredbooleanYestrue
signupSignupInfoYes

SvToken other

Every Sloppy Voice credential: token-prefix '_' 43 base64url chars (32 CSPRNG bytes, no padding); 47 chars total. Prefixes sva (access), svr (refresh), svs (sign-up), svb (bot), svc (authorization code). Server stores SHA-256 over ASCII of whole string.

Specification
05 §7.4
Fields
NameTypeRequiredMeaning and constraints
prefixTokenPrefixYeslowercase; uppercase rejected
randombase64urlYes43 chars, no padding

TokenResponse object

Full token response for login (code grant) and sign-up (201).

Specification
05 §7.3
Fields
NameTypeRequiredMeaning and constraints
access_tokenstringYessva_ token
token_typestringYesBearer
expires_inintegerYesSeconds.
900
refresh_tokenstringYessvr_ token
authAttimestampYesSession's authAt.
accountAccountYes
deviceDeviceRecordYesThe new device record (current: true).

TransactionCookie other

Browser-binding cookie __Secure-svtx-<first 12 chars of upstream state> = 43 b64u chars; Secure, HttpOnly, SameSite=Lax, Path={base path}/v1/auth/, Max-Age=600, no Domain. Read only at /callback and /consent; never an API credential.

Specification
05 §6.4

UnlinkResponse object

200 response of DELETE /v1/me/providers/{linkId}.

Specification
05 §10.4
Fields
NameTypeRequiredMeaning and constraints
unlinkeduuidv7YeslinkId removed.
devicesSignedInWithItarray<string>YesActive dids whose sessions were created through this link.

AccountKind enum

Specification
05 §11.1
Values
ValueMeaning
user
botUnknown kinds treated as bot

Also described in 00 §2.3, 07 §5.1.

AccountSecurity enum

Specification
05 §11.1
Values
ValueMeaning
insecure
secure

Also described in 09 §4.1.

AccountState enum

Specification
05 §11.2
Values
ValueMeaning
activeNormal
upgrade_requiredOn a secure server, encryption not yet on
suspendedOperator or server-scope ban; unknown states treated as suspended
deletedTombstone; never changes again

ConsentDecision enum

Specification
05 §5.4
Values
ValueMeaning
continueIssue the code
cancelRedirect with error=access_denied

DeletionReason enum

Specification
05 §16.3
Values
ValueMeaning
userDeleted by its owner
ownerBot deleted by owner/manage_bots holder or because owner was deleted
adminServer operator; unknown treated as admin
unconfirmedNever-upgraded account on a secure server

DeviceAddedVia enum

Specification
05 §18
Values
ValueMeaning
loginNew sign-in; raises W4d; unknown values treated as login
signupSign-up
bot_tokenBot token creation

DeviceState enum

Specification
05 §12.2
Values
ValueMeaning
active
revokedUnknown treated as revoked

Intent enum

Specification
05 §6.1, §6.3
Values
ValueMeaning
loginDefault; sign in or sign up
reauthFresh authentication of the current session; only via PAR with Bearer
linkInternal: created only by POST /v1/me/providers (§10.3); never a client parameter. Upstream prompt=select_account.

LogoutScope enum

Specification
05 §14
Values
ValueMeaning
currentDefault; revoke this device, reason signed_out
othersRevoke every other active device, reason signed_out_elsewhere; fresh authentication

Prompt enum

Specification
05 §6.2
Values
ValueMeaning
select_accountOnly allowed client prompt value

ProviderProtocol enum

Specification
05 §4.1
Values
ValueMeaning
oidcAny OpenID Connect issuer
githubGitHub OAuth 2.0 profile (§4.6)

RedirectUriForm enum

Specification
05 §5.2
Values
ValueMeaning
loopbackhttp://127.0.0.1:<port>/... or http://[::1]:<port>/...; literal IP only, localhost refused, port ignored
claimed-httpsSame origin as client_id URL
private-use-schemeScheme contains a period; not sloppyv/http/https/javascript/data/file/about

RegistrationClosedReason enum

Specification
05 §7.3
Values
ValueMeaning
serverauth.registration is closed
providerprovider has signup false

RevokedReason enum

Specification
05 §12.3
Values
ValueMeaning
signed_outDevice signed itself out
removedRemoved from another device, incl. via DeviceRevocation
lost_or_stolenRemoved and marked lost/stolen; triggers new recovery key (08 §10.8)
signed_out_elsewhereSign out of all other devices
shared_expiredShared-computer device idle 12 h
inactiveInactivity expiry, replaced at device limit, or unused sign-up device
token_reuseRefresh-token reuse
code_reuseAuthorization code redeemed twice
bot_token_revokedBot token revoked
bot_token_expiredBot token reached its expiry
account_deletedAccount deleted
adminServer operator revoked it
otherAnything else; unknown values treated as other

RevokeRequestReason enum

Specification
05 §12.9
Values
ValueMeaning
removedDefault
lost_or_stolen

SuspensionCause enum

Specification
05 §11.2
Values
ValueMeaning
operator
banwith the ban ID; server-scope ban (10 §9.3)

TokenPrefix enum

Specification
05 §7.4
Values
ValueMeaning
svaaccess token
svrrefresh token
svssign-up token
svbbot token
svcauthorization code

TransactionState enum

Specification
05 §6.7
Values
ValueMeaning
at_provider
consent
code_issued
redeemed
ended

06 Federation

AssertionRequest object

Body of POST /v1/federation/assertions.

Specification
06 §4.1
Fields
NameTypeRequiredMeaning and constraints
audstringYesRemote server domain.
1–253 octets

AssertionResponse object

200 body of POST /v1/federation/assertions.

Specification
06 §4.1
Fields
NameTypeRequiredMeaning and constraints
assertionstring (JWS compact, HomeAssertion)YesThe HomeAssertion (§4.3).
≤ 4,096 octets
audstringYesThe canonical domain placed in the assertion's aud claim.
canonical domain
expiresAttimestampYesThe assertion's exp.
RFC 3339
identityStatestring (JWS, IdentityState, 07)NoThe account's current IdentityState JWS.
MUST be present when the assertion's sec is secure; SHOULD be present otherwise

AudienceRecord other

Home-server record: account, peer canonical domain, time of last assertion, set of sources (assertion, dm_index, community_list). Not exposed except to the account's own view (05).

Specification
06 §11.1, §14.2

DeviceProof jws

Binds a HomeAssertion to an enrolled device's DSK. Header {"alg":"EdDSA","typ":"sv-devproof+jwt","kid":"<dkf>"}; ≤ 1,024 octets; unknown claims ignored; nbf rejected.

Signed by
Device signing key (DSK) whose RFC 7638 thumbprint is the assertion's dkf
Specification
06 §5.2
Fields
NameTypeRequiredMeaning and constraints
audstringYesRemote server canonical domain.
MUST equal the assertion's aud
ajtistringYesBinds the proof to one assertion.
The assertion's jti
iatintegerYesCreation time.
NumericDate
expintegerYesExpiry.
iat < exp ≤ iat + 60; clients SHOULD use iat + 60

Also described in 00 §6 HP-7, §7.13.

EventBatchRequest object

Body of POST /v1/federation/events.

Specification
06 §9.3
Fields
NameTypeRequiredMeaning and constraints
eventsarray<S2SEvent>YesThe batch.
1–100 events; whole body ≤ destination's maxRequestBytes (03); no two events share an id

EventBatchResponse object

200 body of POST /v1/federation/events.

Specification
06 §9.3
Fields
NameTypeRequiredMeaning and constraints
resultsarray<EventResult>YesPer-event outcomes.
Exactly one per request event, same order

EventResult object

Per-event outcome.

Specification
06 §9.3, §16
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesThe event's id.
statusEventResultStatusYesOutcome.
Sender treats unknown as deferred
errorobject (RFC 9457 problem)NoProblem object.
Required when rejected; MAY with deferred; its status member gives the HTTP status a single-event request would have had
retryAfterMsintegerNoEarliest useful retry.
With deferred

ExtendRequest object

Body of POST /v1/federation/sessions/current/extend.

Specification
06 §6.6
Fields
NameTypeRequiredMeaning and constraints
reasonstringYesWhy the extension is requested.
Only home_unreachable; other values rejected with 400 core.invalid_request

FederationBlock object

One blocked peer, keyed by canonical domain and covering all aliases.

Specification
06 §12.2
Fields
NameTypeRequiredMeaning and constraints
domainstringYesBlocked server.
Canonical domain, or the domain as entered (lowercase A-label) if unresolvable
resolvedbooleanYesWhether domain is a canonical domain obtained from discovery.
includeSubdomainsbooleanYesAlso covers every domain ending with "." + domain.
Default false
notestringNoPrivate admin note.
≤ 500 characters; never sent to any peer
createdAttimestampYesCreation time.
RFC 3339
createdBystringYesAdministrator who created it.
Canonical address

FederationPolicy object

Server's federation mode, allowlist and block count.

Specification
06 §12.2
Fields
NameTypeRequiredMeaning and constraints
modeFederationModeYesPolicy mode.
open or allowlist
allowsarray<string>YesAllowlist.
Canonical domains (or unresolved as given); empty in open mode
blockCountintegerYesNumber of FederationBlocks.

HomeAssertion jws

Short-lived (≤300 s), single-use, audience-bound JWS by which a home server vouches for one account and device to one remote server. Header {"alg":"EdDSA","typ":"sv-assert+jwt","kid":"<home canonical domain>#<keyId>"}; no other header members. ≤ 4,096 octets serialized. Unknown claims ignored; nbf rejected; unknown kind/sec values rejected.

Signed by
Home server's active sign server key (kid = <canonical-domain>#<keyId>)
Fields
NameTypeRequiredMeaning and constraints
issstringYesHome server's canonical domain.
Lowercase A-label canonical domain
substringYesThe account.
Canonical address; domain part MUST equal iss
audstringYesRemote server.
Canonical domain; MUST NOT equal iss
iatintegerYesIssue time.
NumericDate
expintegerYesExpiry.
iat < exp ≤ iat + 300; issuers SHOULD use iat + 300
jtistringYesAssertion ID; single use at the audience.
≥16 random bytes, base64url, 22–86 chars
kindenum AccountKindYesAccount kind (05).
user or bot
incbase64urlYesAccount incarnation (D-086).
16 bytes, 22 chars; MUST equal the IdentityState's inc
secenum SecurityStateYesAccount security state.
insecure or secure
didbase64urlYesDevice ID (05).
22 chars (16 octets)
enrbooleanYesTrue when the device is enrolled.
MUST be false when sec is insecure
isvintegerYesver of the IdentityState the claims were derived from.
≥ 1
igenintegerNoIdentity generation.
Present iff enr is true
ikfbase64urlNoIdentity key thumbprint.
Present iff enr is true; 43 chars RFC 7638 SHA-256 thumbprint
dkfbase64urlNoThis device's DSK thumbprint.
Present iff enr is true; 43 chars RFC 7638 SHA-256 thumbprint
namestringNoAccount display name (01).
1–128 octets UTF-8

Also described in 00 §6 HP-7, §7.13.

RemoteSession object

A session of one account and device at one remote server; 1 h, renewable, extendable to 24 h after last verification while home is unreachable.

Specification
06 §6.2
Fields
NameTypeRequiredMeaning and constraints
sessionIduuidv7YesSession ID assigned by the remote server.
Stable across renewals and extensions
tokenstringNoOpaque remote session access token.
Only in create and renew responses; never returned by GET; session-token = 1*512( ALPHA / DIGIT / "-" / "." / "" / "~" ), >=128 bits entropy, SHOULD be prefixed rs
tokenTypestringNoToken scheme.
Only with token; always Bearer
stateRemoteSessionStateYesSession state (§6.7).
active or extended; client treats unknown value as active
accountobjectYesThe server's view of the account: addr (canonical address), name (assertion name if it passes 01's display-name check, else the prepared local part), kind (user|bot), inc (incarnation from the assertion), security (insecure|secure, server's current view).
{addr, name, kind, inc, security}
deviceobjectYesdid, and enrolled (boolean, the server's current view).
{did, enrolled}
secureAccessSecureAccessYesWhether the session may enter secure contexts. In active: full iff account.security=secure and device.enrolled=true, else none; in extended, §7.3 applies.
full, existing_only or none; client treats unknown as none
createdAttimestampYesWhen the session was created.
verifiedAttimestampYesWhen an assertion was last verified for it (creation or renewal).
expiresAttimestampYesWhen the session ends unless renewed or extended.
now + 3,600 s on create/renew
renewAftertimestampYesClient SHOULD renew after this time.
expiresAt − 600 s
extendableUntiltimestampYesLatest expiresAt an extension can reach.
verifiedAt + 24 h

RemoteSessionRecord other

Server-side record per remote session: RemoteSession fields; SHA-256 hash of each live token (never the token); assertion's iss, inc, igen, ikf, dkf, isv; kid that verified the last assertion; jti (replay cache only); client; lastSeenAt; extension count. Kept until 7 days after the session ends.

Specification
06 §6.2, §14.1

RevocationMark other

Audience-side marks: revoked (A, did), deleted (A, inc), suspended (A, inc, suspendedAt); kept ≥ 1 h, SHOULD NOT exceed 7 days; consulted by V15.

Specification
06 §11.4, §14.1

S2SEvent object

S2S event envelope; carries no origin (origin = S2S token iss); not individually signed; ≤ destination's maxFederationEventBytes.

Specification
06 §9.2
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesEvent ID.
Lowercase, hyphenated; unique among all events the origin sends; retries reuse it
tstringYesEvent type.
<area>.<name> (00 §7.5)
tstimestampYesCreation time at origin.
RFC 3339 with milliseconds, UTC; ≤ 300 s in the future; > 25 h old is rejected
orderKeystringNoEvents with equal orderKey (same origin/destination/lane) delivered in creation order.
1–256 characters
expiresAttimestampNoAfter this the origin stops trying and the receiver ignores the event.
RFC 3339
dobjectYesPayload.
Defined by owner of t

S2SRequestToken jws

Request-bound bearer token on every S2S request (Authorization: Bearer <sv-s2s+jwt>). Header {"alg":"EdDSA","typ":"sv-s2s+jwt","kid":"<sender canonical domain>#<keyId>"}; ≤ 4,096 octets; single use; unknown claims ignored; nbf rejected.

Signed by
Sender's active sign server key
Specification
06 §8.2
Fields
NameTypeRequiredMeaning and constraints
issstringYesSender.
Canonical domain
audstringYesDestination.
Canonical domain
htmstringYesHTTP method.
Upper case
htustringYesFull target URI.
normalize(target) per §8.3; never a fragment
bhbase64urlNoBody hash.
Present iff request has content (≥1 octet); SHA-256 of the content, no padding
iatintegerYesIssue time.
NumericDate
expintegerYesExpiry.
iat < exp ≤ iat + 60; senders SHOULD use iat + 60
jtistringYesSingle use at the destination.
≥16 random bytes base64url (22–86 chars)

Also described in 00 §6 HP-7, §7.13.

SessionRequest object

Body of POST /v1/federation/sessions; ≤ 64 KiB.

Specification
06 §6.1
Fields
NameTypeRequiredMeaning and constraints
assertionstring (JWS compact, HomeAssertion)YesThe HomeAssertion.
≤ 4,096 octets; aud must be this server's canonical domain
deviceProofstring (JWS compact, DeviceProof)NoThe DeviceProof (§5).
Required when the assertion has enr: true; MUST be absent otherwise (server ignores it if present); ≤ 1,024 octets
deviceCertificatestring (JWS, DeviceCertificate, 07)NoThe device's DeviceCertificate; needed because IdentityState lists only the DSK thumbprint.
Required when the assertion has enr: true; ≤ 2,048 octets (07 §4.1)
identityStatestring (JWS, IdentityState, 07)NoThe IdentityState returned with the assertion; saves the server a fetch.
RECOMMENDED whenever the assertion's sec is secure; ≤ 32,768 octets
clientstringNoClient software identifier.
1–128 printable ASCII characters, as in session.hello (03)

AccountKind (HomeAssertion.kind, RemoteSession.account.kind) enum

Specification
06 §4.3
Values
ValueMeaning
userHuman account
botBot account

AssertionInvalidReason enum

Specification
06 §17.4
Values
ValueMeaning
malformed
alg
typ
claims
kid
key_unknown
key_status
signature
expired
not_yet_valid
lifetime
subject
security_claims

AudienceSource enum

Specification
06 §11.1
Values
ValueMeaning
assertionHomeAssertion issued with that aud; removed 30 days after the last
dm_indexDM index entry in any state hosted by that peer
community_listPeer on the account's community list

DeviceProofInvalidReason enum

Specification
06 §6.3.3, §17.4
Values
ValueMeaning
device_certificateDeviceCertificate failed
device_proofDeviceProof parse or signature failed
device_proof_bindingaud or ajti mismatch
device_proof_expiredTime check failed

EventResultStatus enum

Specification
06 §9.3
Values
ValueMeaning
acceptedDurably stored or applied; done
duplicateAlready received earlier; done
ignoredValid but not applicable (unknown type, past expiresAt, unknown subject); done
rejectedPermanently refused; drop, log, give-up hook
deferredTemporarily refused; retry later

ExtendReason enum

Specification
06 §6.6
Values
ValueMeaning
home_unreachableClient can't obtain an assertion

FederationMode enum

Specification
06 §12.1
Values
ValueMeaning
openDefault: federate with every peer except blocked ones
allowlistOPTIONAL: federate only with listed peers, never with blocked ones

IdentityMismatchReason enum

Specification
06 §6.3.2, §17.4
Values
ValueMeaning
sec
inc
igen
identity_key
kind
device

Lane enum

Specification
06 §9.8
Values
ValueMeaning
highidentity.changed, device.revoked, account.deleted, account.suspended; notify.event expiring within 120 s of ts; discovery.metadata_changed with urgent: true. Sent at once
normalEverything else; MAY wait up to 250 ms to fill a batch

ProbeOutcome enum

Specification
06 §6.6
Values
ValueMeaning
UnreachableDNS failure, refused/reset, TLS failure, timeout; HTTP 5xx; any other 4xx or a 3xx (logged)
ReachableHTTP 429; HTTP 200 with valid IdentityState; HTTP 200 whose IdentityState still fails after refetch (admin alerted); any other response
Account goneHTTP 410 problem identity.account_deleted, or 404 with code identity.not_found

RemoteSessionState enum

Specification
06 §6.2, §6.7
Values
ValueMeaning
activeVerified within the last hour
extendedKept alive past its verified hour because home is unreachable

S2SUnauthenticatedReason enum

Specification
06 §8.5, §17.4
Values
ValueMeaning
missing
malformed
alg
typ
claims
kid
issuer_not_canonical
key_unknown
key_status
signature
audience
method
uri
body_hash
expired
not_yet_valid
lifetime
replayed

SecureAccess enum

Specification
06 §6.2, §7.3
Values
ValueMeaning
fullMay enter secure contexts
existing_onlyExtended enrolled session: may continue where the device already has a leaf, no new secure joins
noneNo secure access

SecurityState (HomeAssertion.sec, RemoteSession.account.security) enum

Specification
06 §4.3
Values
ValueMeaning
insecureInsecure account
secureSecure account

SessionEndReason (federation.session_ended data.reason / event reason) enum

Specification
06 §6.8, §17.4
Values
ValueMeaning
expiredexpiresAt passed
extension_limitExtension refused at the 24 h limit and expiresAt passed
device_revokeddevice.revoked accepted (retry yes)
identity_changedidentity.changed made the enrolled device invalid (retry yes)
account_deletedaccount.deleted, explicit deletion probe answer, or a new inc (retry no)
blockedHome domain blocked (retry no)
key_revokedIssuer key that verified the last assertion revoked (retry yes)
moderationModeration action of 10 (as 10 specifies)
replacedFifth concurrent session for the same (account, did) (retry no)
signed_outDELETE …/sessions/current (retry no)
adminAdministrator ended it, or account.suspended accepted (retry yes); unknown reasons treated as admin

07 Identity keys, certificates and verification

Actor object

actor member of identity.changed / device.revoked, only on delivery to the subject's own devices.

Specification
07 §12.1
Fields
NameTypeRequiredMeaning and constraints
didstringYesInitiating device
platstringYesIts platform
changedAttimestampYesTime of the change
RFC 3339

Also described in 10 §11.2.

AddedDevice object

device member of identity.changed when change is device_added.

Specification
07 §12.1
Fields
NameTypeRequiredMeaning and constraints
didstringYesAdded device
platstringYesIts platform

DeviceCertificate jws

Identity-key-signed certificate binding one device's DSK and box key to the account and generation. Header exactly {alg: EdDSA, typ: sv-devcert+jwt, kid: thumb(ik)}. Max 2,048 bytes; lifetime until revoked or reset; no exp/nbf. Self-issued by the device for itself only.

Signed by
identity key (ik)
Specification
07 §6
Fields
NameTypeRequiredMeaning and constraints
substringYesCanonical address
MUST equal IdentityCertificate sub
igenintegerYesGeneration
MUST equal IdentityCertificate igen
didstringYesDevice ID assigned by the home server (05)
16 bytes, base64url, 22 characters
dskOkpJwk (Ed25519)YesDevice signing key public key
MUST NOT equal ik
dbkOkpJwk (X25519)YesDevice box key for HPKE sealing to this device
kty OKP, crv X25519, x 32 bytes
platPlatformYesDevice platform
1–16 chars of [a-z0-9_]; bot iff kind is bot
iatinteger (NumericDate)YesTime of issue
≤ now + 60 s

Also described in 00 §6 HP-1, §7.13.

DeviceEntry object

One active enrolled device in IdentityState devices.

Specification
07 §7.1
Fields
NameTypeRequiredMeaning and constraints
didstringYesDevice ID
unique within devices; 16 bytes
dkfstringYesThumbprint of the device's DSK for the current igen
thumb(dsk)
platstringYesCopied from the DeviceCertificate
sinceinteger (NumericDate)YesWhen the device was listed (registration time)

DeviceRevocation jws

Optional identity-key-signed statement that one device ID is revoked for good, in every generation. Header exactly {alg: EdDSA, typ: sv-devrevoke+jwt, kid: thumb(ik)}. Max 1,024 bytes; permanent; no exp/nbf. Accepted as evidence only from revoked[].rev of a verified IdentityState.

Signed by
identity key (ik)
Specification
07 §8
Fields
NameTypeRequiredMeaning and constraints
substringYesAccount
canonical address
igenintegerYesGeneration of the signing identity key
didstringYesRevoked device ID
iatinteger (NumericDate)YesTime of signing

Also described in 00 §2.4, §7.13.

IdentityCertificate jws

Self-signed certificate binding the account's identity key to its canonical address, generation and kind. Header exactly {alg: EdDSA, typ: sv-idcert+jwt, kid: thumb(ik)}. Max 2,048 bytes; lifetime until next reset; no exp/nbf.

Signed by
identity key (ik), self-signed
Specification
07 §5
Fields
NameTypeRequiredMeaning and constraints
substringYesAccount
canonical address (§4.2)
ikOkpJwk (Ed25519)YesIdentity public key
exactly kty, crv, x; x 32 bytes base64url
igenintegerYesIdentity generation of this key
1 to 4,294,967,295
kindAccountKindYesAccount kind
user or bot; MUST equal account kind; unknown rejected
iatinteger (NumericDate)YesTime of issue
≤ now + 60 s

Also described in 00 §6 HP-1, §7.13.

IdentityDiagnostic object

The data object of a 15 diagnostic report with kind identity_check; envelope ctx is the context and createdAt the observation time. Sent via POST /v1/diagnostics to the hosting server and own home server.

Specification
07 §13.6
Fields
NameTypeRequiredMeaning and constraints
subjectstringYesThe member
canonical address
didstringNoDevice ID of the leaf
reasonIdentityCheckResultYesIdentity check result (§10.6)
verintegerNover of the IdentityState involved

IdentityResponse object

Response body of every §11 endpoint (GET /v1/me/identity adds thisDevice).

Specification
07 §11.1
Fields
NameTypeRequiredMeaning and constraints
addressstringYesThe canonical address
statestringYesThe current IdentityState JWS
deviceCertificatesarray<string>YesDeviceCertificate JWS of each listed device
same order as devices; empty when insecure

IdentityState jws

The home server's signed statement of an account's current identity, published for every account (insecure and bots included). Header exactly {alg: EdDSA, typ: sv-idstate+jwt, kid: <canonical-domain>#<keyId>}. Max 32,768 bytes; exp − iat 1..86,400 s; no nbf.

Signed by
home server key with purpose sign and status active (02)
Specification
07 §7
Fields
NameTypeRequiredMeaning and constraints
issstringYesIssuer
home server canonical domain; equals domain of sub and of header kid
substringYesAccount
canonical address
incstringYesAccount incarnation (05 §11.1, D-086)
16 bytes base64url, 22 chars; never changes while the account exists
verintegerYesVersion
1 to 2^53 − 1; +1 on every content change
secSecurityStateYesAccount security state
insecure or secure; unknown = malformed
igenintegerYesCurrent identity generation
0 to 4,294,967,295
idcstring (IdentityCertificate JWS)NoIdentityCertificate for igen
required when sec is secure; MUST be absent when insecure; byte-identical to registered
devicesarray<DeviceEntry>YesActive enrolled devices
empty when insecure; at most maxEnrolledDevices, never more than 64; ordered by since then did
revokedarray<RevokedEntry>YesRecently revoked devices
at most 50 entries, at most 8 carrying rev; may be empty
iatinteger (NumericDate)YesTime of signing
expinteger (NumericDate)YesExpiry
exp − iat > 0 and ≤ 86,400

Also described in 00 §6 HP-2, §7.13.

LocalOwnIdentityState other

Device-local (not vault) record of the last own IdentityState accepted (ver, igen, sec, device set), own enrolment generation, dids whose pairing it approved in the last 24 h, and W4 alerts already raised (including W4d dids).

Specification
07 §18.4

OkpJwk object

Public key JWK used in ik, dsk (Ed25519) and dbk (X25519). Exactly the members kty, crv, x; anything else is malformed. Ed25519 keys MUST pass 04 §4.3 items 1 and 2.

Specification
07 §4.1
Fields
NameTypeRequiredMeaning and constraints
ktystringYesKey type
"OKP"
crvstringYesCurve
"Ed25519" for ik/dsk; "X25519" for dbk
xbase64urlYesRaw public key
32 bytes, no padding

PinRecord object

A client's stored record of the identity key it accepted for one DM contact address, with its verification state. Stored in the AccountVault (08 owns record type, ID and encryption), shared across the user's enrolled devices.

Specification
07 §16.1
Fields
NameTypeRequiredMeaning and constraints
addrstringYesContact's address
canonical address
incstringYesContact's incarnation the record belongs to
statePinStateYesVerification state
unknown value treated as verified_blocked (fail safe)
ikbase64urlNoPinned identity key
32 bytes; required except in state new_account; in downgraded states the last key
igenintegerYesGeneration of ik
verintegerYesHighest IdentityState ver reflected
kindAccountKindYesuser or bot
from IdentityCertificate; in new_account from public profile, user if unknown
pendingIkbase64urlNoNew key awaiting the user's decision
required in verified_blocked
pendingIgenintegerNoIts generation
required in verified_blocked
prevIkbase64urlNoKey the most recent key change replaced
required in changed and accepted
prevIgenintegerNoGeneration of prevIk
with prevIk
wasVerifiedbooleanYesWhether the key most recently replaced, or held at downgrade, was verified
verifiedAttimestampNoTime of verification
RFC 3339; required in verified
verifyMethodVerifyMethodNosafety_number or qr
required in verified
changeIdstringNoIdentifies the change
when a W2 is outstanding: thumb(new key) + ":" + igen, "insecure:" + igen, or "account:" + inc
w2DismissedbooleanYesWhether the user dismissed W2 for changeId
firstSeenAttimestampYesTime of first contact
RFC 3339
updatedAttimestampYesLast change to the record
RFC 3339

Also described in 02 §10.1.

RevokedEntry object

One recently revoked device in IdentityState revoked.

Specification
07 §7.1
Fields
NameTypeRequiredMeaning and constraints
didstringYesRevoked device ID
MUST NOT also appear in devices
atinteger (NumericDate)YesTime of revocation
revstring (DeviceRevocation JWS)NoDeviceRevocation for this did, if uploaded
only the 8 most recent entries keep it

SafetyNumber other

60-digit number: two 30-digit Fingerprint(ik, addr) halves sorted as strings. Fingerprint: h = "sv1 safety" || 0x00 || 0x00 0x01 || ik || addr; 5,200 iterations h = SHA-512(h || ik); six 5-digit groups from uint40_be(h[5j..5j+4]) mod 100000. Displayed as 12 groups of 5 digits.

Specification
07 §17.1

SvDeviceCredential tls-record

Body of the sv_device MLS credential (CredentialType 0xF5A0): two RFC 9420 variable-length vectors holding the IdentityCertificate and DeviceCertificate compact JWS as ASCII. Each vector 1–2,048 bytes, minimal varint length; no trailing bytes; only base64url alphabet and ..

Specification
07 §10.1
Fields
NameTypeRequiredMeaning and constraints
identity_certificateopaque<V>YesIdentityCertificate JWS
1–2,048 bytes ASCII
device_certificateopaque<V>YesDeviceCertificate JWS
1–2,048 bytes ASCII

Also described in 00 §6 HP-1.

ThisDevice object

thisDevice member of GET /v1/me/identity.

Specification
07 §11.3
Fields
NameTypeRequiredMeaning and constraints
didstringYesThe session's device
enrolledbooleanYesTrue when did is listed in devices

VerifierStore other

Per-subject state each verifier (hosting server, client) keeps: highest accepted IdentityState with ver, igen, kid, iat, acceptedAt; validated-at time; verified DeviceRevocations as (sub, did) with carrying state's kid/iat/acceptedAt (permanent); replaced incarnations. Local only on clients, not synced.

Specification
07 §7.5

VerifyQR binary-frame

QR verification payload, encoded with RFC 8446 §3.4 fixed 2-byte length prefixes. QR text is SVV1: + base64url(VerifyQR) without padding, byte mode, error correction level M; valid 10 minutes; nonce fresh per display.

Specification
07 §17.2
Fields
NameTypeRequiredMeaning and constraints
versionuint8YesPayload version
1
nonceopaque[16]YesNonce
fresh random each time the screen opens
own_addressopaque<1..2^16-1>YesDisplayer's canonical address
UTF-8
own_ikopaque[32]YesDisplayer's own identity key
peer_addressopaque<1..2^16-1>YesThe contact's canonical address
UTF-8
peer_ikopaque[32]YesKey the displayer trusts for the contact
pendingIk if pin is verified_blocked, else pin ik

ChannelAsCheck enum

Specification
07 §13.3
Values
ValueMeaning
C1ValidateSvDeviceCredential on new/updated leaf
C2Leaf sub/did are the session's account/device
C3IdentityState fresh for channel AS (fetch with 5 s timeout; D-083 exception)
C4sec secure and credential IdentityCertificate byte-identical to state idc
C5IsDeviceValid holds
C6L4
C7L5 and L8; server issues/reissues Remove proposals
C8L6 and L7
C9Account may join and isn't banned (not an identity check)

ChannelSilentCheck enum

Specification
07 §13.6
Values
ValueMeaning
S1MUST validate every added/updated leaf; L1, L2, L4, L6, L7
S2SHOULD verify annotated IdentityState in background
S3SHOULD record L5 violation as diagnostic
S4MUST report S2/S3 failures as identity diagnostics
S5MUST NOT show warnings about others in channels
S6MUST NOT create pins from channel rosters

DmAdmissionCheck enum

Specification
07 §14.2
Values
ValueMeaning
D1ValidateSvDeviceCredential
D2sv_participants lists sub with thumb(ik)
D3Pin check
D4New device: IsDeviceValid with state fresh for admission
D5Known device: credential byte-identical
D6L4, L5, L6, L8 hold after change

IdentityChangeKind enum

Specification
07 §12.1
Values
ValueMeaning
upgradedFirst upgrade or re-upgrade
resetNew identity key
downgradedEncryption turned off
device_addedDevice registered

IdentityCheckResult enum

Values
ValueMeaning
malformedEncoding, JSON, type or size error in a credential or identity object.
typ_mismatchWrong JWS typ.
bad_signatureA signature doesn't verify, or its key can't be found.
non_canonicalA sub fails 01 §7.5 (isCanonical); HTTP errors use address.non_canonical.
subject_mismatchTwo objects, or an object and its context, name different addresses.
issuer_mismatchIdentityState iss isn't the home domain of sub.
generation_mismatchigen values that must match don't.
key_mismatchA kid doesn't match the identity key, or the leaf's identity key differs from the IdentityState's.
kind_mismatchkind and plat disagree, or kind differs from the account kind.
identity_key_as_leafA DSK or leaf key equals an identity key (L6).
dsk_mismatchThe leaf's signature_key isn't the DeviceCertificate's DSK (L2).
dkf_mismatchThe IdentityState lists the device with a different dkf.
device_not_listedThe device isn't in the IdentityState's devices.
device_revokedThe device is covered by a revocation.
device_mismatchThe leaf's did isn't the device of the session that submitted it.
account_insecureThe IdentityState says sec: insecure.
state_staleNo IdentityState fresh enough for the purpose (§7.6).
state_unavailableThe IdentityState couldn't be fetched. Transient: the only retryable reason of mls.credential_rejected.
state_rollbackLower ver or igen than one already accepted, or a replaced/non-generation-starting incarnation.
state_equivocationSame ver different content, two IdentityCertificates for one generation, or sec change without igen change.
duplicate_device_leafL4 violated.
mixed_identityL5 or L8 violated.
credential_changedL7 violated.
wrong_credential_typeL1 violated.
not_participantThe person isn't in sv_participants with this identity key (DMs).
pin_mismatchThe identity key differs from the client's pin and no home-signed evidence supports the change.
not_permittedThe account may not be in the context (C9); not an identity check; reported via mls.credential_rejected with data.membershipCode.

InvalidCertificateObject enum

Values
ValueMeaning
identityCertificateIdentityCertificate failed
deviceCertificateDeviceCertificate failed
revocationDeviceRevocation failed

KeyReusedWhich enum

Specification
07 §19
Values
ValueMeaning
ikIdentity key reused
dskDSK reused or equals identity key

LeafRule enum

Specification
07 §10.2
Values
ValueMeaning
L1Every leaf credential is sv_device; basic/x509 forbidden; capabilities.credentials includes 0xF5A0; group required_capabilities lists it.
L2Leaf signature_key equals raw(dsk) of the DeviceCertificate.
L3encryption_key fresh for each leaf (RFC 9420).
L4No two leaves with the same (sub, did), except within one commit that also removes the older leaf.
L5All leaves of one sub carry byte-identical IdentityCertificates, except leaves the hosting server has proposed to remove. DMs: MUST; channels: diagnostic only.
L6No leaf signature_key equals any leaf's identity key.
L7A leaf's credential never changes in place; Update/UpdatePath must carry byte-identical credential.
L8A member commit admitting a leaf with a different IdentityCertificate for the same sub must remove all older-IdentityCertificate leaves of that sub in the same commit.

PinState enum

Specification
07 §16.1, §16.3
Values
ValueMeaning
pinnedKey accepted silently (TOFU) or after W2 dismissed
verifiedUser verified current key
changedUnverified contact's key changed; W2 outstanding
verified_blockedVerified contact's key changed; sending blocked; pendingIk waits
acceptedUser tapped Accept new key; W2 non-blocking banner
downgradedContact turned encryption off; last key kept
downgraded_blockedVerified contact downgraded; nothing sent in 1:1 DM until accept
new_accountNew insecure account at a known address; no ik

Also described in 02 §10.1.

ResetMode enum

Specification
07 §11.6
Values
ValueMeaning
new_keyReplace identity key in a new generation
downgradeTurn encryption off (counts as a reset)

SecurityState enum

Specification
07 §7.1
Values
ValueMeaning
insecureNo identity key; no idc; devices empty
secureHas idc and enrolled devices

SelfAlert enum

Specification
07 §18
Values
ValueMeaning
W4aYour identity was reset from elsewhere (needs a tap)
W4bSomeone appears under your address (needs a tap)
W4cA new device was added (no tap)
W4dNew sign-in notice; triggered by 05 §12.12

VerifyMethod enum

Specification
07 §16.1
Values
ValueMeaning
safety_numberCompared safety number
qrMutual QR scan

W2Variant enum

Values
ValueMeaning
key changedContact reset or re-upgraded
turned off encryptionContact downgraded
new accountNew incarnation at a known address (1:1 DM only)

08 Turning on encryption, pairing, backup and the vault

AbortBody object

Body of abort, sent by either participant after cpace_a and before ack; carries no CPace data.

Specification
08 §6.6.2
Fields
NameTypeRequiredMeaning and constraints
reasonstringYesAbort reason.
wrong_code | verification_failed | cancelled | internal; unknown = internal

AckBody object

Body of ack, sent by the new device.

Specification
08 §6.6.2, §6.7.3
Fields
NameTypeRequiredMeaning and constraints
statusstringYesCleartext status for the server state machine.
"ok" | "failed"
reasonstringNoFailure reason.
"verification_failed" | "registration_failed"; only with failed
proof{nonce, ct}YesEncrypted AckProof.
§6.7.3

AckProof object

Plaintext encrypted under K_ack and sent as ack.proof; the approver shows success only after it decrypts and says ok.

Specification
08 §6.7.3
Fields
NameTypeRequiredMeaning and constraints
vintegerYesVersion.
1
statusstringYesResult.
ok | failed
didstringYesNew device.
newDid
dkfstring|nullYesThumbprint of its new DSK, or null.

ArchiveKeyEntry object

One history key entry in an archive record.

Specification
08 §9.1
Fields
NameTypeRequiredMeaning and constraints
ekidbase64urlYesKey ID = HKDF-Expand(key, "sv1 ekid", 8).
8 bytes
keybase64urlYesK_hist.
32 bytes
sourceenum ArchiveKeySourceYesOrigin of key.
v1 writers write only mls
confirmedbooleanYesHas decrypted a verified SealedMessage.
always true for mls
learnedAttimestampYesFirst learned.

ArchiveRecord object

Plaintext of an archive vault record: history keys of one (group, epoch).

Specification
08 §9.1
Fields
NameTypeRequiredMeaning and constraints
tstringYesType tag.
"archive"
hoststringYesHosting server.
canonical domain
ctxstringYesContext.
ch:…, dm:… or gdm:…
groupIdstringYesGroup.
MLS group_id (00 §7.6)
genintegerYesGroup generation.
1 to 2,147,483,647; must agree with groupId
epochintegerYesEpoch.
0 to 2^53 − 1
keysarray<ArchiveKeyEntry>YesKey entries (more than one only on fork).
1 to 4, distinct ekid

BackupMetaExtras object

Members added to the ?part=meta response.

Specification
08 §5.5.1
Fields
NameTypeRequiredMeaning and constraints
downloadAllowedbooleanYesWhether a full GET would pass §5.7 now (ignoring rate limits).
phraseChangePendingbooleanYesA new phrase is required before rewriting under the current one.

BoxKey object

A device's public X25519 box key, certified via devcert's dbk claim and signed by the device's DSK.

Signed by
device signing key (DSK), labelled signature vault-box-key
Specification
08 §10.1
Fields
NameTypeRequiredMeaning and constraints
didstringYesDevice ID.
equal to path and session device
igenintegerYesIdentity generation.
pubbase64urlYesX25519 public key.
32 bytes; = x of devcert dbk
devcertstringYesDeviceCertificate.
JWS
sigbase64urlYesDSK signature over BoxKeyTBS.
label vault-box-key
createdAttimestampNoStored time.
set by server

BoxKeyTBS tls-record

u8(1) || lv(addr) || did || u32(igen) || pub

Signed by
DSK (label vault-box-key)
Specification
08 §10.1
Fields
NameTypeRequiredMeaning and constraints
versionuint8YesVersion.
1
addropaque<V>YesAccount.
canonical address
didopaque[16]YesDevice ID binary.
igenuint32YesIdentity generation.
pubopaque[32]YesX25519 public key.

ConfirmABody object

Body of confirm_a, sent by the initiator.

Specification
08 §6.6.2
Fields
NameTypeRequiredMeaning and constraints
tabase64urlYesInitiator confirmation tag.
32 bytes

CpaceABody object

Body of cpace_a, sent by the entering device (CPace initiator).

Specification
08 §6.6.2
Fields
NameTypeRequiredMeaning and constraints
credstringYesWhich credential was used.
"qr" (prs_kind 1) or "code" (prs_kind 2); unknown = CPace failure
yabase64urlYes04's Ya.
32 bytes
adbase64urlYes04's ADa.
26 bytes

CpaceBBody object

Body of cpace_b, sent by the displayer (CPace responder).

Specification
08 §6.6.2
Fields
NameTypeRequiredMeaning and constraints
ybbase64urlYesYb.
32 bytes
adbase64urlYesADb.
26 bytes
tbbase64urlYesResponder confirmation tag.
32 bytes

DeviceSummary object

Device description built by the home server from the 05 device record.

Specification
08 §6.2
Fields
NameTypeRequiredMeaning and constraints
didstringYesDevice ID.
platenum PlatformYesPlatform.
desktop | web | ios | android
clientstringYesClient software and version.
≤ 64 chars
namestringYesDisplay name, e.g. "Chrome · Windows".
≤ 64 chars
providerstringYesOIDC provider ID the device record was created with.
authAttimestampYesMost recent provider sign-in of the device session.

KeyBackup object

Encrypted blob on the home server that lets a device with the recovery phrase and a home session become enrolled; the server can never open it.

Specification
08 §5.1
Fields
NameTypeRequiredMeaning and constraints
vintegerYesFormat version.
1; server refuses others with backup.invalid; client treats unknown as unusable
addrstringYesAccount address.
MUST equal account's canonical address
igenintegerYesIdentity generation whose keys the backup holds.
ikfstringYesThumbprint of identity public key.
RFC 7638 thumbprint, base64url, 43 chars
vgenintegerYesNewest vault generation whose key the payload holds.
1 to 4,294,967,295
phraseIdbase64urlYesPhrase ID of the phrase that opens this backup.
16 bytes
kdfArgon2idParamsYesKDF parameters.
04 §12.2: alg, v, m, t, p, salt
noncebase64urlYesAES-GCM nonce.
12 bytes
ctbase64urlYesAES-256-GCM ciphertext with 16-byte tag.
decoded ≤ maxBackupBytes
verintegerNoVersion.
response only; server; from 1, +1 per accepted write across stagings and igens; never reused
stateenum KeyBackupStateNoactive or staged.
response only; unknown = unusable
updatedAttimestampNoWrite time.
response only
updatedBystringNoWriting device.
response only; did

KeyBackupAAD other

AEAD associated data of KeyBackup.ct: "sv1 backup" || 0x00 || u8(v) || lv(addr) || u32(igen) || ikf_raw (32 bytes) || u32(vgen) || phraseId_raw (16 bytes) || u8(kdf.v) || u32(kdf.m) || u32(kdf.t) || u32(kdf.p) || lv(salt); ct = AEAD-Seal(BK, nonce, UTF-8(payload JSON), AAD).

Specification
08 §5.4

KeyBackupPayload object

UTF-8 I-JSON plaintext encrypted into KeyBackup.ct; also the base of the pairing payload.

Specification
08 §5.2
Fields
NameTypeRequiredMeaning and constraints
vintegerYesVersion.
1
addrstringYesAccount address.
canonical
igenintegerYesIdentity generation.
ikbase64urlYesIdentity private key.
32-byte Ed25519 seed
idcstringYesIdentity certificate.
IdentityCertificate JWS exactly as registered
vaultIdKeybase64urlYesK_vid.
32 bytes
vaultKeysarray<{vgen: integer, key: base64url(32)}>YesVault keys.
MUST contain object's vgen (current when written); SHOULD contain only it
phrasebase64urlYesPhrase entropy E.
10 bytes
phraseIdbase64urlYesPhrase ID of E.
16 bytes
createdAttimestampYesWhen built.

KeyBackupWrite object

Body of PUT /v1/me/backup: the client-set KeyBackup members plus stage and prevVer.

Specification
08 §5.6
Fields
NameTypeRequiredMeaning and constraints
v, addr, igen, ikf, vgen, phraseId, kdf, nonce, ctas KeyBackupYesClient-set KeyBackup members.
§5.1
stagebooleanNotrue to stage a backup for an identity about to be registered or reset.
default false
prevVerintegerNoThe ver of the active KeyBackup this write replaces.
required when stage is false

KeyStorageDiagnostic object

Diagnostic data of kind key_storage.

Specification
08 §16.4
Fields
NameTypeRequiredMeaning and constraints
keyProtectionenum KeyProtectionYesHow the wrapping key is protected.
hardware | platform | file

KeyStoreWrapAAD other

Associated data of every wrapped local key-store secret: lv(label) || lv(addr) || did, label e.g. ik, dsk, box, vault:<vgen>, phrase, bk (K-1, §13.3).

Specification
08 §13.1, §13.3

NotificationKeySubset object

The only secrets a mobile notification extension or web service worker may read: recent history keys plus public sender DSKs.

Specification
08 §13.5
Fields
NameTypeRequiredMeaning and constraints
vintegerYesVersion.
1
addrstringYesAccount.
didstringYesDevice.
contextsarray<{host, ctx, <entries>: [{gen, epoch, ekid, khist, learnedAt}]}>YesHistory keys for contexts with notifications.
member name of the entry list not given by the spec; up to 4 entries per context: the current epoch, the two before it, and any other epoch used by a message in the last 24 h
sendersarray<{addr, did, dsks}>NoAccepted public DSKs per sender device, per context.
required whenever contexts non-empty; public data only
updatedAttimestampYesLast write by main app.

PairingAAD other

AAD(dir, fromDid, toDid) = "sv1 pair" || 0x00 || u8(dir) || pairingId || fromDid || toDid || lv(addr); dir 0x01 for the payload (approver to new device, K_payload), 0x02 for the ack proof (new device to approver, K_ack).

Specification
08 §6.7.1

PairingCode other

6-digit code shown as "042 917" (pair-code-shown = 3DIGIT SP 3DIGIT); input strips non-digits after NFKC and needs exactly 6 digits; PRS is the 6 ASCII digits.

Specification
08 §6.3.2, §6.3.3

PairingMessageItem object

Item of GET …/messages.

Specification
08 §6.4.4
Fields
NameTypeRequiredMeaning and constraints
nintegerYesIndex.
typeenum PairingMessageTypeYesType.
fromstringYesSender.
did
bodyobjectYesBody.
sentAttimestampYesServer acceptance time.

PairingMessageRequest object

Body of POST /v1/me/pairing/{id}/messages.

Specification
08 §6.4.4
Fields
NameTypeRequiredMeaning and constraints
typeenum PairingMessageTypeYesMessage type.
bodyobjectYesType body.
≤ 64 KiB payload, ≤ 2 KiB others

PairingPayload object

Plaintext of the pairing payload: all KeyBackupPayload members plus approverDid and newDid.

Specification
08 §6.7.2
Fields
NameTypeRequiredMeaning and constraints
(KeyBackupPayload members)KeyBackupPayloadYesv, addr, igen, ik, idc, vaultIdKey, vaultKeys, phrase, phraseId, createdAt.
vaultKeys MUST contain current generation, MAY contain older
approverDidstringYesApprover's did.
newDidstringYesNew device's did.

PairingSession object

Server-side record of one pairing attempt.

Specification
08 §6.2
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YespairingId.
server-assigned
stateenum PairingStateYesSession state.
unknown = terminal failure
displayerenum DisplayerYesWho displays the QR/code.
createdByenum DisplayerYesCreator role.
new_device | enrolled_device
newDeviceDeviceSummary|nullYesThe new device, once known.
approverDeviceSummary|nullYesThe approver, once known.
createdAttimestampYesCreation time.
expiresAttimestampYesDeadline.
createdAt + 10 min, or confirmedAt + 5 min once confirmed
endedAttimestamp|nullYesWhen terminal state reached.
endReasonenum PairingEndReason|nullYesWhy ended.
unknown = protocol_error

PairQrPayload binary-frame

QR code content: "SVPAIR1:" + base32 (RFC 4648, no padding) of pair-bin; QR alphanumeric mode, EC level M.

Specification
08 §6.3.1
Fields
NameTypeRequiredMeaning and constraints
versionu8YesFormat version.
0x01; reject others
displayeru8YesDirection.
0x01 new device displays (A); 0x02 approver displays (B); reject unknown
pairingIdbytes[16]YesSession ID.
binary UUID
secretbytes[16]YesQR secret (CPace PRS for prs_kind 1).
random
addrLenlv varint (1 or 2 bytes)YesAddress length.
one byte below 64; up to 318
addrbytes[addrLen]YesAccount address.
UTF-8 canonical address; no trailing bytes

PayloadBody object

Body of payload, sent by the approver: the encrypted PairingPayload.

Specification
08 §6.6.2, §6.7
Fields
NameTypeRequiredMeaning and constraints
noncebase64urlYesAES-GCM nonce.
12 bytes
ctbase64urlYesAEAD-Seal(K_payload, nonce, payload, AAD(0x01, approverDid, newDid)).

PinVaultRecord object

Plaintext of a pin record: 07's pin record (07 §16.1) plus t: "pin"; members and merge owned by 07; writers keep unknown members.

Specification
08 §8.6.2
Fields
NameTypeRequiredMeaning and constraints
tstringYesType tag.
"pin"
addrstringYesContact address.
07-owned; used for rid

RecoveryPhrase other

8 BIP-39 English words encoding 80-bit E plus 8-bit checksum SHA-256(E)[0]; canonical text form lowercase, single spaces (ABNF recovery-phrase = word 7( SP word )). Not a BIP-39 mnemonic.

Specification
08 §4.1, §4.2

RecoveryRecord object

The single recovery vault record: current phrase entropy and W8 state, synced to every enrolled device.

Specification
08 §8.6.5
Fields
NameTypeRequiredMeaning and constraints
tstringYesType tag.
"recovery"
phrasebase64urlYesCurrent E.
10 bytes
phraseIdbase64urlYesPhrase ID.
16 bytes
reasonenum RecoveryReasonYesWhy made.
unknown = replaced
createdAttimestampYesWhen phrase made.
savedAttimestamp|nullYesFirst completed save.
saveMethodenum SaveMethod|nullYesHow saved.
unknown kept and treated as saved
lastNudgedAttimestamp|nullYesLast W8 banner.

SecPinVaultRecord object

Plaintext of a sec_pin record: 09's channel, community or group DM pin (09 §13.2), already carrying t: "sec_pin"; 08 uses only host and ctx for the rid.

Specification
08 §8.6.3
Fields
NameTypeRequiredMeaning and constraints
tstringYesType tag.
"sec_pin"
hoststringYesHosting server.
09-owned
ctxstring|nullYesContext.
null for community pin

SettingsRecord object

Plaintext of a settings vault record.

Specification
08 §8.6.4
Fields
NameTypeRequiredMeaning and constraints
tstringYesType tag.
"settings"
namestringYesSetting name.
[a-z][a-z0-9_]{0,63}
valueany JSONYesValue.
defined by owner
updatedAttimestampYesFor merging.

SharedKeysRecord object

Plaintext of a shared_keys record: verified message keys from one part of a HistoryShare.

Specification
08 §9.5
Fields
NameTypeRequiredMeaning and constraints
tstringYesType tag.
"shared_keys"
hoststringYesHosting server.
canonical domain
ctxstringYesContext.
ch:…, dm:… or gdm:…
shareIdstringYesHistoryShare ID.
14 §7.4 (UUID)
partintegerYesPart index.
0 to 156; covers items 32p to 32p+31
sharerstringYesSharing account (for K7).
canonical address
keysarray<{mid: string, k: base64url(32)}>YesMessage keys.
1 to 32, distinct mids, each verified per 14 §7.8

VaultChangesPage object

Response of GET /v1/me/vault/changes.

Specification
08 §8.8
Fields
NameTypeRequiredMeaning and constraints
itemsarray<VaultRecord>YesChanged records incl. tombstones.
vseqintegerYesCursor.
headVseqintegerYesHead.
informative
hasMorebooleanYesMore pages.

VaultGeneration object

One vault key generation as stored by the server.

Signed by
creating device's DSK (label vault-generation)
Specification
08 §10.2
Fields
NameTypeRequiredMeaning and constraints
vgenintegerYesGeneration.
1 to 4,294,967,295
kcvbase64urlYesKey check value kcv(vgen).
8 bytes
linkVaultKeyLink|nullYesLink to previous key.
null for generation 1
idStateVerintegerYesIdentityState ver used by creator.
createdBystringYesCreator.
did; client-set
devcertstringYesCreator's DeviceCertificate.
JWS; client-set
sigbase64urlYesGeneration signature.
label vault-generation
createdAttimestampYesCreated.
server-set

VaultGenerationCreate object

Body of POST /v1/me/vault/keys (generation 1, rotation or orphan recovery).

Signed by
creating device's DSK (label vault-generation)
Fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesNew generation.
1 for initialization; g + 1 for rotation; c + 1 for recovery
prevVgenintegerYesGeneration this one follows.
0 for generation 1; otherwise the current generation
kcvbase64urlYeskcv(vgen).
8 bytes
linkVaultKeyLink|nullYesWraps K_vault(linkedVgen); linkedVgen normally g, or l for §10.5.3.
null for generation 1
grantsarray<{did, enc, ct}>YesVaultKeyGrants for every device verified in V3.
[] for generation 1
idStateVerintegerYesver of the IdentityState used in V3.
createdBystringYesCreating device.
did; must be the session's device
devcertstringYesCreating device's certificate.
DeviceCertificate JWS
sigbase64urlYesGeneration signature.
labelled signature, label vault-generation, over VaultGenerationTBS

VaultGenerationTBS tls-record

Structure signed by the generation signature.

Signed by
creating device's DSK (label vault-generation)
Specification
08 §10.2
Fields
NameTypeRequiredMeaning and constraints
versionuint8YesVersion.
1
addropaque<V>YesAccount.
igenuint32YesIdentity generation.
vgenuint32YesGeneration.
linked_vgenuint32YesLinked generation.
0 for generation 1
kcvopaque[8]YesKey check value.
link_nonceopaque<V>YesLink nonce.
empty for gen 1
link_ctopaque<V>YesLink ciphertext.
empty for gen 1
id_state_veruint64YesIdentityState ver.
creator_didopaque[16]YesCreator did.

VaultGrantsPostResponse object

200 response of POST /v1/me/vault/grants.

Specification
08 §10.3
Fields
NameTypeRequiredMeaning and constraints
acceptedarray<string>YesGrants stored.
dids
rejectedarray<{did, reason}>YesGrants refused.
reason: not_active | no_box_key

VaultIntegrityDiagnostic object

Diagnostic data of kind vault_integrity sent via POST /v1/diagnostics (15 §14.3).

Specification
08 §16.4
Fields
NameTypeRequiredMeaning and constraints
checkenum VaultIntegrityCheckYesWhich check failed.
ridbase64urlNoRecord ID.
vgenintegerNoGeneration.

VaultKeyGrant object

K_vault(vgen) HPKE-sealed (base mode, DHKEM(X25519, HKDF-SHA256)/HKDF-SHA256/AES-256-GCM) to one device's box key; info = "sv1 vault grant" || 0x00 || lv(addr) || did || u32(igen) || u32(vgen), aad empty. Authenticates nothing by itself.

Specification
08 §10.3
Fields
NameTypeRequiredMeaning and constraints
didstringYesRecipient device.
igenintegerYesIdentity generation.
vgenintegerYesGeneration.
encbase64urlYesHPKE encapsulated key.
32 bytes
ctbase64urlYesSealed key.
48 bytes
createdAttimestampNoStored.
server-set
createdBystringNoGranting device.
server-set

VaultKeyLink object

The newer vault key's encryption of an older one: AEAD-Seal(K_link(g, l), nonce, K_vault(l), "sv1 vault" || 0x00 || 0x02 || lv(addr) || u32(igen) || u32(g) || u32(l)).

Specification
08 §10.2
Fields
NameTypeRequiredMeaning and constraints
linkedVgenintegerYesGeneration it wraps.
normally g − 1
noncebase64urlYesNonce.
12 bytes
ctbase64urlYesWrapped key.

VaultKeyLinkAAD other

link(g).ct = AEAD-Seal(K_link(g, l), nonce, K_vault(l), "sv1 vault" || 0x00 || 0x02 || lv(addr) || u32(igen) || u32(g) || u32(l)).

Specification
08 §10.2

VaultKeysState object

Response of GET /v1/me/vault/keys.

Specification
08 §10.2
Fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesCurrent generation.
rotationPendingbooleanYesRotation needed.
pendingAttimestamp|nullYesSince when.
phraseChangePendingbooleanYesNew phrase required.
orphanedbooleanYesCurrent generation lost.
generationsarray<VaultGeneration>YesGenerations.

VaultRecord object

Wire form of one AccountVault record version.

Specification
08 §8.3
Fields
NameTypeRequiredMeaning and constraints
ridbase64urlYesRecord ID (§8.5).
16 bytes, 22 chars; client
typestringYesRecord type.
[a-z][a-z0-9_]{0,31}; client; unknown types ignored
bucketbase64url|nullYesBucket tag.
16 bytes; only archive and shared_keys
igenintegerYesIdentity generation.
MUST equal vault's igen
vgenintegerYesGeneration whose key encrypted this version.
noncebase64urlNoNonce.
12 bytes; absent on tombstones
ctbase64urlNoCiphertext and tag.
decoded ≤ maxVaultRecordBytes; absent on tombstones
verintegerYesRecord version.
server
vseqintegerYesChange sequence of this version.
server
deletedbooleanYestrue for a tombstone.
server
updatedAttimestampYesWrite time.
server
updatedBystringYesWriting device.
server; did

VaultRecordAAD other

AEAD associated data of a vault record: "sv1 vault" || 0x00 || 0x01 || rid || lv(type) || u32(igen) || u32(vgen) || u32(ver) || lv(addr), where ver = ifVer + 1; ct = AEAD-Seal(K_rec(vgen, rid), nonce, UTF-8(plaintext JSON), AAD).

Specification
08 §8.4

VaultRecordWrite object

One item of PUT /v1/me/vault/records.

Specification
08 §8.7.3
Fields
NameTypeRequiredMeaning and constraints
rid, type, bucket, igen, vgen, nonce, ctas VaultRecordYesAs §8.3.
bucket may be null
ifVerintegerYesCompare-and-set; stored version = ifVer + 1.
0 = create (no record or tombstone may exist); n > 0 = replace version n

VaultSummary object

Response of GET /v1/me/vault.

Specification
08 §8.7.1
Fields
NameTypeRequiredMeaning and constraints
igenintegerYesIdentity generation.
vgenintegerYesCurrent generation.
0 = uninitialized
rotationPendingbooleanYesRotation needed.
vseqintegerYesNewest vseq.
recordCountintegerYesRecord count.
bytesUsedintegerYesQuota usage.
quotaBytesintegerYesQuota.
retiredarray<{igen: integer, expiresAt: timestamp}>YesRetired vaults.

VaultWriteResponse object

200 response of PUT /v1/me/vault/records.

Specification
08 §8.7.3
Fields
NameTypeRequiredMeaning and constraints
resultsarray<VaultWriteResult>YesPer-record outcomes.
one per item, in request order
vseqintegerYesVault change sequence after the request.

VaultWriteResult object

Per-record result in the PUT …/records response.

Specification
08 §8.7.3
Fields
NameTypeRequiredMeaning and constraints
ridbase64urlYesRecord ID.
okbooleanYesSuccess.
verintegerNoNew version.
on success
vseqintegerNoChange sequence.
on success
errorproblem objectNoPer-record error.
on failure (RFC 9457)

AbortReason enum

Specification
08 §6.6.2
Values
ValueMeaning
wrong_codeTag mismatch.
verification_failedBad CPace data (unknown cred, wrong length).
cancelledUser cancelled.
internalOther; unknown reasons map here.

AckFailReason enum

Specification
08 §6.6.2
Values
ValueMeaning
verification_failedPayload check failed.
registration_failedDeviceCertificate registration failed.

AckStatus enum

Specification
08 §6.6.2
Values
ValueMeaning
okKeys received and device registered.
failedFailure.

ArchiveKeySource enum

Specification
08 §9.1
Values
ValueMeaning
mlsFrom writer's own MLS processing; only value v1 writes.
recoveredReserved; treated, like any unknown value, as not from MLS.

DiagnosticKind enum

Specification
08 §16.4
Values
ValueMeaning
vault_integrityA vault record or generation failed a check (data: check, rid?, vgen?).
key_storageHow the local key store is protected (data: keyProtection).

Also described in 14 §9.4.

Displayer enum

Specification
08 §6.1, §6.2
Values
ValueMeaning
new_deviceDirection A: new device displays.
enrolled_deviceDirection B: approver displays.

GrantRejectReason enum

Specification
08 §10.3
Values
ValueMeaning
not_activedid not active.
no_box_keydid has no box key.

KeyBackupState enum

Specification
08 §5.1
Values
ValueMeaning
activeThe current KeyBackup.
stagedAwaiting activation with an identity registration or reset.

KeyProtection enum

Specification
08 §16.4, §13.2
Values
ValueMeaning
hardware
platform
fileLinux fallback key file (mode 0600).

LocalEnrolmentState enum

Values
ValueMeaning
pending_upgradeKeys generated at U2, identity not yet registered.
pending_resetReset material generated at S2.
enrolledIdentity registered.
backup_pendingMark on K_vault(g+1) until the backup holds g+1 (V4–V6).

PairingCancelReason enum

Specification
08 §6.4.5
Values
ValueMeaning
denied"No, that's not me" from a prompted device, only in waiting.
cancelledParticipant cancels in any non-terminal state.

PairingCred enum

Specification
08 §6.3.3, §6.6.2
Values
ValueMeaning
qrprs_kind 1, PRS = 16-byte secret.
codeprs_kind 2, PRS = 6 ASCII digits.

PairingEndReason enum

Specification
08 §6.2
Values
ValueMeaning
completedSuccess.
wrong_codeCPace confirmation failed.
deniedPrompted device answered No.
cancelledParticipant cancelled or aborted with cancelled.
supersededCreator made a newer session.
timeout60 s step or 5-min finish timer.
expired10-min deadline.
identity_changedIdentity reset or downgrade.
device_revokedA participant revoked or signed out.
protocol_errorOut-of-order message, other abort, or ack failed (not registration). Unknown values map here.
registration_failedack failed with reason registration_failed.

PairingMessageType enum

Specification
08 §6.6.2
Values
ValueMeaning
cpace_aEntering device (initiator), message 1.
cpace_bDisplayer (responder), message 2.
confirm_aInitiator, message 3.
payloadApprover, encrypted keys.
ackNew device, result and proof.
abortEither participant.

PairingState enum

Specification
08 §6.2, §6.8
Values
ValueMeaning
waitingCreated, missing role not filled.
joinedBoth roles filled.
exchangingCPace messages in flight.
confirmedconfirm_a relayed; 5-min finishing deadline.
deliveredPayload relayed.
completedTerminal: ack ok.
failedTerminal failure.
expiredTerminal: 10-min deadline passed.
cancelledTerminal: cancelled/denied/identity changed/device revoked.

PairQrDisplayerByte enum

Specification
08 §6.3.1
Values
ValueMeaning
0x01New device displays (A).
0x02Approver displays (B).

Platform enum

Specification
08 §6.2
Values
ValueMeaning
desktop
web
ios
android

Also described in 05 §12.2, 07 §6.1 (open set: 1–16 chars [a-z0-9_]; unknown values from user certificates accepted and shown as generic device).

RecoveryReason enum

Specification
08 §8.6.5
Values
ValueMeaning
newUpgrade or reset.
replacedUser made a new recovery key; unknown values map here.
lost_or_stolenAfter a lost/stolen revocation (§10.8).

SaveMethod enum

Specification
08 §8.6.5
Values
ValueMeaning
password_manager
print
shown

SettingName enum

Specification
08 §8.6.4
Values
ValueMeaning
w1_seenOwner 20: array of community domains for which W1 was shown; set union.
mention_hintsOwner 11: boolean, default true (D-063).
typing_indicatorsOwner 11: boolean, default true.
client_prefsOpaque per-client preferences, owner the client.

VaultIntegrityCheck enum

Specification
08 §16.4
Values
ValueMeaning
decrypt
type
rid
bucket
generation
generation_conflict
orphaned

VaultRecordType enum

Specification
08 §8.6
Values
ValueMeaning
archiveHistory keys per (group, epoch); lazily per bucket.
shared_keysShared message keys per (context, HistoryShare, part); lazily per bucket.
pinContact identity pin (07); eager.
sec_pinSecure channel/community/group DM seen (09); eager.
settingsSynced setting; eager.
recoveryCurrent phrase and W8 state; eager; never deleted.

09 Communities, membership, channels and security transitions

Category object

Channel category.

Specification
09 §6.5
Fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
nameText(100)Yes1-100, single line
positionintegerYesfrom 0
versionintegerYes
createdAttimestampYes
updatedAttimestampYes

Channel object

A text or voice channel context with a timeline.

Specification
09 §6.1
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesch:<UUIDv7>; immutable
addressstringYeslocal@canonicalDomain; shared namespace
namestringYeslinked to local part (D-005)
reservedAddressesarray<{address, until}>YesOld addresses reserved for 90 days
oldest first
kindChannelKindYesimmutable; unknown -> text, no call
securityChannelSecurityYesonly insecure->secure; unknown -> unavailable
securedAttimestamp|nullYesimmutable once set
upgradeSeqinteger|nullYesHighest seq before upgrade
null for insecure and created-secure channels; immutable
preUpgradeHistorystring|nullYeskept|deleted when upgradeSeq set
retentionDaysinteger|nullYes1-36500 or null; default null
topicText(1024)Yessingle line
categoryIduuidv7|nullYes
positionintegerYesfrom 0 within category
memberCountintegerYesMAY be approximate; change alone doesn't change version or emit event
membership{state, visibleFromSeq}|nullYescaller's own; personalized or omitted in events (keep previous value if omitted)
versionintegerYesexcludes memberCount and membership changes
createdAttimestampYes
updatedAttimestampYes
createdBystringYescanonical address

ChannelAlreadySecureData other

data of 409 channel.already_secure.

Specification
09 §10.4
Fields
NameTypeRequiredMeaning and constraints
channelChannelYes
bystring|nullYesUpgrading admin, null after server upgrade
groupIdstring|nullYesEpoch 0 group
generationinteger|nullYes
ekidstring|nullYes

ChannelList object

Response of GET /v1/channels: every channel the caller can view (for non-members/requesters, previewVisible channels only) plus categories; never paginated (bounded by maxChannels). Categories without any viewable channel are omitted for callers without manage_channels.

Specification
09 §6.6
Fields
NameTypeRequiredMeaning and constraints
itemsarray<Channel>YesViewable channels
categoriesarray<Category>YesCategories
nextCursornullYesNever paginated
always null

ChannelMember object

An account's membership of one channel.

Specification
09 §4.5
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesch: reference
addrstringYesAs CommunityMember
namestringYes
kindstringYes
incstringYessame incarnation as community record
accountSecuritystringNosame visibility rule as CommunityMember
stateChannelMemberStateYesactive|needs_encryption|left; unknown -> left
reasonstring|nullYesChannelMemberReason
joinedAttimestamp|nullYes
joinSeqinteger|nullYesseq of the member.joined starting current membership
visibleFromSeqinteger|nullYesSecure visibility start (14)
null in insecure channels and while needs_encryption
visibleRangesarray<[integer, integer|null]>NoVisibility ranges (§7.2)
only in HTTP responses to the member itself and manage_channels holders; never in events
versionintegerYes
updatedAttimestampYes

ChannelPin other

08 sec_pin AccountVault record, kind channel.

Specification
09 §13.2
Fields
NameTypeRequiredMeaning and constraints
tstringYessec_pin
kindstringYeschannel
hoststringYesKey with ctx
ctxstringYes
addressstringYes
previousAddressesarray<{address, replacedAt}>Yesentries >90 d MAY be dropped
securedAttimestampNoabsent until seen; immutable
upgradeSeqinteger|nullNoabsent until seen in Channel or channel.security_changed
versionintegerNoChannel version that set securedAt
firstSeenAttimestampYes
lastSeenAttimestampYes
deletedSeenAttimestamp|nullYes

ChannelTombstone other

data of 410 channel.deleted for at least 400 days.

Specification
09 §6.4
Fields
NameTypeRequiredMeaning and constraints
ctxstringYes
addressstringYes
securitystringYes
securedAttimestamp|nullYes
upgradeSeqinteger|nullYes

Community object

The community that every server is; named by its canonical domain; public via GET /v1/community.

Specification
09 §3.2
Fields
NameTypeRequiredMeaning and constraints
domainstringYesCanonical domain
lowercase A-label; immutable
nameText(64)YesName
1-64 after trimming, single line; equals ServerMetadata name
descriptionText(1000)Yesmulti-line, may be empty
iconCommunityIcon|nullYes
securebooleanYesnever returns to false
securedAttimestamp|nullYesimmutable once set
joinPolicyJoinPolicyYesunknown -> treat as invite
requireRulesAcceptancebooleanYesdefault false
rulesTextText(8000)Yesmulti-line plain text
rulesVersionintegerYesstarts 0, +1 per rulesText change
localAccountsAreMembersbooleanYesD-068 toggle
default true
defaultChannelstring|nullYesch: reference of a previewVisible channel
memberCountintegerYesactive + needs_encryption
MAY be approximate, updated at least every 5 min
versionintegerYes+1 per change
createdAttimestampYes
updatedAttimestampYes

CommunityIcon object

Icon descriptor.

Specification
09 §3.4
Fields
NameTypeRequiredMeaning and constraints
urlstringYesabsolute HTTPS under server base URL; changes when image changes
sha256base64urlYesSHA-256 of image bytes; clients MUST verify after download
mediaTypestringYesimage/png|image/jpeg|image/webp
widthintegerYes16-1024, square
heightintegerYes16-1024, square

CommunityListEntry object

Home server's record of one community in an account's sidebar list.

Specification
09 §5.1
Fields
NameTypeRequiredMeaning and constraints
domainstringYescanonical; entry key
namestringYesCached
≤64 scalar values
iconUrlstring|nullYesCached
securebooleanYesCached
informative only
statestringYesCached
active|pending|needs_encryption; unknown shown as active
positionintegerYesfrom 0
localbooleanYestrue for home server's own community (server-maintained)
addedAttimestampYes
updatedAttimestampYes

CommunityMember object

An account's membership of the community.

Specification
09 §4.1
Fields
NameTypeRequiredMeaning and constraints
addrstringYescanonical
namestringYesDisplay name checked against addr
kindstringYesuser|bot; unknown -> user layout, no badge
incstringYesAccount incarnation (D-086)
never changes for a record
localbooleanYes
accountSecuritystringNoinsecure|secure; only to the member itself and manage_channels/manage_community holders; never in events; unknown -> insecure
stateCommunityMemberStateYesunknown -> left
reasonstring|nullYesnull for active and pending; unknown -> no reason
viastringYesauto|open|invite|request; unknown shown as nothing
requestedAttimestamp|nullYes
joinedAttimestamp|nullYes
rulesAcceptedVersioninteger|nullYes
rolesarray<uuidv7>YesRole IDs (10)
empty for non-members
versionintegerYes
updatedAttimestampYes

CommunityPin other

sec_pin record, kind community; covers the whole server; never deleted.

Specification
09 §13.2
Fields
NameTypeRequiredMeaning and constraints
tstringYessec_pin
kindstringYescommunity
hoststringYesKey
ctxnullYes
securedAttimestampNo
versionintegerNo
firstSeenAttimestampYes
lastSeenAttimestampYes
hiddenbooleanYestrue after Leave on W9

GroupDmPin other

sec_pin record, kind group_dm.

Specification
09 §13.2
Fields
NameTypeRequiredMeaning and constraints
tstringYessec_pin
kindstringYesgroup_dm
hoststringYes
ctxstringYesgdm: reference
firstSeenAttimestampYes
lastSeenAttimestampYes
hiddenbooleanYes

Invite object

Community invite.

Specification
09 §8.1
Fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
codestringYes12-char canonical Crockford base32
channelstring|nullYesch: reference or null (defaultChannel)
createdBystringYes
createdAttimestampYes
expiresAttimestamp|nullYes
maxUsesinteger|nullYes1-10000 or null
usesintegerYes
stateInviteStateYesunknown -> not usable
allowSignUpbooleanYesdefault true
uristringYessloppyv URI per 01 §10.3
shareLinkstring|nullYesfrom ServerMetadata links.join template

InviteCode other

60 random bits encoded as 12 Crockford base32 chars; displayed XXXX-XXXX-XXXX; normalized per §8.2.

Specification
09 §8.2

InvitePreview object

Unauthenticated invite preview.

Specification
09 §8.4
Fields
NameTypeRequiredMeaning and constraints
codestringYes
community{domain, name, icon, secure, joinPolicy, requireRulesAcceptance, memberCount}YesPublic community data
channel{ctx, address, name, kind, security}|nullYesnull when none or not previewVisible
createdBy{addr, name}Yes
expiresAttimestamp|nullYes

JoinCommunityResponse object

Response of POST /v1/community/join (200 or 202).

Specification
09 §4.3
Fields
NameTypeRequiredMeaning and constraints
memberCommunityMemberYes
communityCommunityYes
openChannelstring|nullYes
inviteIgnoredstring|nullYes

JoinIntent other

Client device-local record to resume after G1/G2 (§9.6). Not a wire object: the spec lists what it holds but gives no member names, so the names below are descriptive only. Stored in device-local storage (not the AccountVault); at most one per target; expires after 24 h.

Specification
09 §9.6
Fields
NameTypeRequiredMeaning and constraints
targetstringYesWhat the interrupted action was aimed at
community domain or ctx
invite codestringNoThe invite code, if any
accepted rules versionintegerNoThe rules version the person accepted, if any
actionJoinIntentActionYesThe interrupted action
join_community|open_channel|join_call|upgrade_channel
timetimestampYesWhen the intent was recorded
expires after 24 h

LayoutChange object

Body of PATCH /v1/community/layout. categories MUST list every category exactly once; channels MUST list every channel exactly once; order within each category (and among uncategorized channels) becomes position 0,1,2…; otherwise core.invalid_request and nothing changes. Needs manage_channels over every channel.

Specification
09 §6.5
Fields
NameTypeRequiredMeaning and constraints
categoriesarray<uuidv7>YesNew category order
every category exactly once
channelsarray<{ctx, categoryId}>YesNew channel placement and order
every channel exactly once; categoryId null for uncategorized

MembershipCheckRequest object

S2S membership check request.

Specification
09 §5.2
Fields
NameTypeRequiredMeaning and constraints
onBehalfOfstringYescanonical address
onBehalfOfIncstringYes
addrsarray<string>Yes1-20

MembershipCheckResponse object

200 response of POST /v1/community/membership-check: results in request order.

Specification
09 §5.2
Fields
NameTypeRequiredMeaning and constraints
resultsarray<MembershipCheckResult>YesOne result per requested address
request order

MembershipCheckResult object

One result element of the membership check response ({ results: [...] }).

Specification
09 §5.2
Fields
NameTypeRequiredMeaning and constraints
addrstringYes
memberbooleanYestrue exactly when active or needs_encryption
statestring|nullYesactive|needs_encryption or null; unknown -> null
incstring|nullYesIncarnation of the member's record

PlanVersion other

base64url(SHA-256("sv1 upgrade plan" || 0x00 || scope || 0x00 || A_1 || 0x0A || … || A_n || 0x0A)[0..16]), 22 chars.

Specification
09 §10.6

SecurityDowngradeSeenData other

data of the security_downgrade_seen diagnostic report (POST /v1/diagnostics, 15 §14.3).

Specification
09 §13.6
Fields
NameTypeRequiredMeaning and constraints
triggerstringYesT1…T6; unknown stored as other
hoststringYes
pinnedobjectYessecuredAt, upgradeSeq, version as known
observedobjectYessecurity/secure, securedAt, upgradeSeq, version, and for T2 the content seq

ServerUpgradePlan object

Server upgrade dry-run result.

Specification
09 §11.2
Fields
NameTypeRequiredMeaning and constraints
scopestringYescommunity
domainstringYes
planVersionstringYes
insecureChannelCountintegerYes
localInsecureAccountCountintegerYes
localInsecureBotCountintegerYes
remoteInsecureMemberCountintegerYes
cannotFollowarray<{addr, name, kind, local, reason}>Yes≤100
cannotFollowTruncatedbooleanYes
secureBotsarray<{addr, name}>Yes≤100
secureBotsTruncatedbooleanYes
insecureDmCountintegerYes
activeCallCountintegerYes
webhookCountintegerYes
historyMessageCountintegerYesMAY be approximate

UpgradePlan object

Channel upgrade dry-run result.

Specification
09 §10.2
Fields
NameTypeRequiredMeaning and constraints
scopestringYeschannel
ctxstringYes
planVersionstringYes22-char base64url
memberTotalintegerYesactive channel members
cannotFollowCountintegerYes
cannotFollowarray<{addr, name, kind, reason}>Yes≤100, by addr; reason insecure_account
cannotFollowTruncatedbooleanYes
secureBotsarray<{addr, name}>Yes≤100, by addr
secureBotsTruncatedbooleanYes
needsDeviceSetupCountintegerYesinformative
historyMessageCountintegerYesMAY be approximate
activeCallbooleanYes
webhookCountintegerYes

CannotFollowReason enum

Specification
09 §10.2
Values
ValueMeaning
insecure_accountdefault for unknown

ChannelDeletedReason enum

Specification
09 §14.2
Values
ValueMeaning
deleted
lost_accessvisibility change; doesn't set pin deletedSeenAt

ChannelMemberReason enum

Specification
09 §4.5
Values
ValueMeaning
leftleft
community_leftleft
kickedleft
bannedleft
lost_accessleft
account_deletedleft
channel_upgradedneeds_encryption
server_upgradedneeds_encryption
account_downgradedneeds_encryption

ChannelMemberState enum

Specification
09 §4.5
Values
ValueMeaning
active
needs_encryption
leftunknown values treated as left

CommunityListEntryState enum

Specification
09 §5.1
Values
ValueMeaning
activedefault for unknown
pending
needs_encryption

CommunityListOp enum

Specification
09 §14.2
Values
ValueMeaning
upsert
remove

CommunityMemberReason enum

Specification
09 §4.2
Values
ValueMeaning
leftleft by choice
kickedleft
account_deletedleft
unbannedleft
server_upgradedneeds_encryption
account_downgradedneeds_encryption
bannedbanned

CommunityMemberState enum

Specification
09 §4.2
Values
ValueMeaning
activeFull member
pendingRequester awaiting approval
needs_encryptionInsecure account in a secure community
bannedBanned
leftLeft/kicked/deleted; unknown values treated as left

IconMediaType enum

Specification
09 §3.4
Values
ValueMeaning
image/png
image/jpeg
image/webp

InviteState enum

Specification
09 §8.1
Values
ValueMeaning
active
expired
used_up
revokedunknown = not usable

JoinIntentAction enum

Specification
09 §9.6
Values
ValueMeaning
join_community
open_channel
join_call
upgrade_channel

JoinPolicy enum

Specification
09 §3.3
Values
ValueMeaning
openAnyone passing security gates (default)
inviteValid invite required
requestRequests wait pending for approval; 30-day expiry
closedNobody new except D-068 local accounts; unknown values treated as invite

MemberEventScope enum

Specification
09 §14.2
Values
ValueMeaning
channel
community

MemberKind enum

Specification
09 §4.1
Values
ValueMeaning
userdefault for unknown
bot

MemberRejectedReason enum

Specification
09 §14.2
Values
ValueMeaning
rejected
expired30 days passed
closedjoinPolicy changed to closed, or server upgrade T4

MemberRemovedReason enum

Specification
09 §14.2
Values
ValueMeaning
kicked
banned
lost_access
account_deleted
community_left

MemberVia enum

Specification
09 §4.1
Values
ValueMeaning
autoD-068
open
invite
request

PinKind enum

Specification
09 §13.2
Values
ValueMeaning
channel
community
group_dmothers ignored

PreUpgradeHistory enum

Specification
09 §6.1
Values
ValueMeaning
kept
deleted

SecurityChangedCause enum

Specification
09 §14.2
Values
ValueMeaning
channel_upgrade
server_upgrade

Also described in 12 §16.1.

W9Trigger enum

Specification
09 §13.4
Values
ValueMeaning
T1current statement says insecure
T2plaintext after upgradeSeq / insecure call
T3securedAt/upgradeSeq differ from pin
T4community secure:false or different securedAt
T5channel insecure on secure server, or upgraded after server securedAt+300s
T6pinned address resolves to different insecure ctx

10 Roles, permissions, moderation and reports

AntiSpamPolicy object

The community's single anti-spam policy.

Specification
10 §12.2
Fields
NameTypeRequiredMeaning and constraints
versionintegerYesread-only
newMember.enabledbooleanNodefault true
newMember.durationMsintegerNodefault 600,000; 0–604,800,000; from join time
newMember.restrictedarray<Permission>Nodefault [attach_files, mention_everyone, create_invites]; channel-scoped; not view_channel
newAccount.enabledbooleanNodefault true; local accounts only
newAccount.ageMsintegerNodefault 86,400,000
newAccount.maxNewDmsPerDayintegerNodefault 5; 0–100
slowModeobjectNodefault {}; map ctx → interval ms 1,000–21,600,000
mentionLimitintegerNodefault 20; 1–50
floodTimeout.enabledbooleanNodefault true
floodTimeout.durationMsintegerNodefault 600,000; 60,000–86,400,000

AuditLogEntry object

Immutable audit-log entry.

Specification
10 §11.2
Fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
seqintegerYesstrictly increasing per server from 1; order by seq, never id
attimestampYes
actorActorYes
actionstringYesAuditAction; unknown → 'Other change'
targetTypestringYesAuditTargetType; unknown → generic
targetIdstring|nullNo
targetAddressstring|nullNo
ctxstring|nullNo
reasonstring|nullNo
changesarray<{field, before, after}>No
countintegerNo
reportIdstring|nullNo
relatedIdstring|nullNo
restrictedbooleanYesadmins-only entries

Ban object

Ban of an address or domain, scope community or server.

Specification
10 §9.1
Fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
targetTypestringYesaddress|domain; unknown shows as 'Other ban'
addressstringNowhen address; canonical when canonical=true
domainstringNowhen domain; lowercase A-label
canonicalbooleanYesfalse if target server couldn't be resolved
scopestringYescommunity|server; server only for address; unknown treated as server
reasonstringNo0–512 characters
showReasonbooleanYesdefault false
createdByActorYes
createdAttimestampYes
expiresAttimestamp|nullYesnull = permanent; ≥ 1 h after createdAt
reportIduuidv7|nullNo

MemberRoles (unnamed in spec) object

Response of GET /v1/roles/members/{address}.

Specification
10 §7.2
Fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
roleIdsarray<uuidv7>YesOrdinary and admin roles held
position descending; everyone not listed
topintegerYesTop position
permissionsarray<Permission>YesEffective community permissions
channelPermissionsarray<Permission>NoEffective permissions in ctx
only when ctx given
timeoutUntiltimestamp|nullNoTimeout end
only to the member themself or holders of timeout_members

ModerationStatus (unnamed in spec) object

Response of GET /v1/moderation/members/{address}.

Specification
10 §8.9
Fields
NameTypeRequiredMeaning and constraints
addressstringYesCanonical address
timeoutTimeout|nullNoActive timeout
needs timeout_members
serverMuteServerMute|nullNoActive server mute
needs mute_members
banBan|nullNoActive ban
needs ban_members
openReportsintegerNoOpen reports
needs manage_reports; only reports the caller can see, never about the caller
joinedAttimestampYesJoin time

PermissionOverwrite object

Per-channel allow/deny of channel-scoped permissions for one role or one member.

Specification
10 §5.1
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesch:… only (no DMs)
targetTypestringYesrole|member; unknown → ignore overwrite
roleIduuidv7Nowhen targetType role; never the admin role
addressstringNowhen targetType member; canonical
allowarray<Permission>Yeschannel-scoped only; may be empty
denyarray<Permission>Yeschannel-scoped only; may be empty; disjoint from allow
updatedAttimestampYesresponses
updatedBystringYesresponses; canonical address of last actor

Report object

Moderator view of a report.

Specification
10 §10.2
Fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
originstringYeslocal|forwarded|reporter_home; unknown → local
originServerstring|nullYesforwarded only
originReportIdstring|nullYesforwarded only
hoststringYeshosting server canonical domain
ctxstring|nullYes
requestIdstring|nullYesreporter_home message-request reports
kindstringYesmessages|member; unknown → member
categorystringYesReportCategory; unknown → other
targetstringYescanonical address
didstringNokind member + impersonation only
reporterstringNomoderator view, local and reporter_home only; never in forwarded
notestringNo0–1,000 Unicode scalar values; never forwarded
routingstringYesmoderators|admins
includeContextbooleanYes
allowForwardbooleanYes
itemsarray<ReportItem>Yesempty for member
verificationstringYesverified|partial|failed|not_applicable; unknown → failed
statusstringYesReportStatus
resolutionstring|nullYesnull unless resolved
resolutionNotestring|nullNo0–2,000 characters; never shown to reporter/target or forwarded
assigneestring|nullNo
actionsarray<uuidv7>Yesaudit entry IDs
preserveEvidencebooleanYesdefault false
forwardedToarray<string>Yes
versionintegerYes
createdAttimestampYes
updatedAttimestampYes
resolvedAttimestamp|nullYes
resolvedBystring|nullYes

ReporterView object

Subset of Report shown to its reporter.

Specification
10 §10.8
Fields
NameTypeRequiredMeaning and constraints
iduuidv7Yes
ctxstring|nullYes
kindstringYes
categorystringYes
statusstringYes
outcomestring|nullYesnull until resolved; action_taken|reviewed
createdAttimestampYes
updatedAttimestampYes

ReportForwardedPayload object

Payload d of the report.forwarded S2S event.

Specification
10 §10.9
Fields
NameTypeRequiredMeaning and constraints
reportIduuidv7YesID at origin
originstringYesMUST equal S2S token iss
hoststringYesequals origin for local; differs for reporter_home
ctxstringYes
securitystringYesinsecure|secure
kindstringYesalways messages
categorystringYes
targetstringYesdomain MUST be receiver's canonical domain
targetIncstring|nullYestarget incarnation as recorded by origin
itemsarray<ReportItem>Yesreported items only, seq order; attachments by reference (attachmentId, fileKey, size); truncated items lack sealed/kMsg/credential/content
hostVerificationstringYesorigin's verification summary
forwardedAttimestampYes

ReportItem object

One message in a report, with evidence and verification result.

Specification
10 §10.2
Fields
NameTypeRequiredMeaning and constraints
miduuidv7Yes
rolestringYesreported|context; unknown → context
kindstringYesmessage|edit|reaction; unknown → message
refstring|nullYesfor edit/reaction: target mid
seqinteger|nullYes
authorstringYes
didstringNosealed items
sentAttimestamp|nullYes
contentobjectNoonly for verified/plaintext, subject to §10.5
sealedSealedMessageNosealed items, subject to §10.5
kMsgbase64urlNo32 bytes; sealed items, subject to §10.5
credentialobjectNo{idc: IdentityCertificate JWS, devcert: DeviceCertificate JWS}; reporter_home and forwarded sealed items
attachmentsarray<{attachmentId, fileKey?, size, available, result}>NofileKey sealed only, subject to §10.5
itemVerificationobjectYes{result: ItemVerificationResult}
evidenceSourcestringYesserver|reporter|origin; unknown → reporter
truncatedbooleanNodefault false; forwarded item without evidence
withheldstring|nullNosecurity.account_required|security.device_not_enrolled

ReportRequest (inline) object

Body of POST /v1/reports.

Specification
10 §10.3
Fields
NameTypeRequiredMeaning and constraints
ctxstring|nullYesContext, or null for a member report outside any context
hoststringNoCanonical domain of the hosting server
For §10.10 reports; hosting server ignores it
requestIdstringNoMessage request ID (12)
For a message-request report
kindenum ReportKindYesmessages or member
categoryenum ReportCategoryYesCategory
unknown values rejected with core.invalid_request
targetstringNoCanonical address
For member reports and §10.10 reports; else taken from items
didstringNoUnknown device ID
Only kind member + category impersonation
notestringNoReporter's note
0–1,000 Unicode scalar values
routingenum ReportRoutingNoadmins = server admins only
default moderators
includeContextbooleanNoSurrounding messages included
default true
allowForwardbooleanNoAllow forwarding to target's home server
default true
itemsarray<ReportItemRequest>NoItems: {mid, role, kMsg?, sealed?, credential? (§10.10 only), attachments?: [{attachmentId, fileKey?}]}
Required for messages; 1 to maxReportItems reported, ≤10 context before and ≤10 after

Role object

A community role.

Specification
10 §4.1
Fields
NameTypeRequiredMeaning and constraints
iduuidv7Yesserver-generated
namestringYesClients display localized name for system roles
1–40 Unicode scalar values after NFC; no Cc/Cf (except ZWJ), no line breaks, no leading/trailing white space; unique after case folding+NFC; ordinary role's UTS #39 skeleton must not equal admin/administrator/everyone or localized system-role names
systemstring|nullYeseveryone|admin|null; unknown → treat as null for display, never offer delete
positionintegerYes0 to maxRoles−1; unique; everyone 0, admin highest; ordinary 1..n−2 no gaps
permissionsarray<Permission>Yesfor admin the server returns the full registry
colorstring|nullNo#rrggbb lowercase or null
showSeparatelybooleanNodefault false
memberCountintegerYesresponses; for everyone: number of active members
versionintegerYesresponses; starts 1, increases on every change incl. renumbering
createdAttimestampYesresponses
updatedAttimestampYesresponses

ServerMute object

Community-wide audio mute, keyed by (member, inc); no own ID.

Specification
10 §8.6
Fields
NameTypeRequiredMeaning and constraints
memberstringYescanonical address
untiltimestamp|nullYesnull = until lifted
reasonstringNoreturned only to mute_members holders, and target if showReason
showReasonbooleanNo
reportIduuidv7|nullNo
createdByActorYes
createdAttimestampYes

Timeout object

A member's single timeout, keyed by (member, inc); no own ID.

Specification
10 §8.5
Fields
NameTypeRequiredMeaning and constraints
memberstringYescanonical address
untiltimestampYes
reasonstringNovisible only to timeout_members holders, and target if showReason
showReasonbooleanYesdefault false
createdByActorYesmember or system; never shown to target
createdAttimestampYes
reportIduuidv7|nullNo

ActorKind enum

Specification
10 §11.2
Values
ValueMeaning
membera member
systemautomatic action (expiry, anti-spam)
operatoroutside the protocol (21)

AuditAction enum

Specification
10 §11.3
Values
ValueMeaning
role_created10
role_updated10
role_deleted10
roles_reordered10
role_granted10; includes step-down and operator admin removal
role_removed10
overwrite_set10
overwrite_removed10
messages_deleted10; with count and relatedId for kick/ban deletions
member_kicked10
member_banned10
domain_banned10
ban_updated10
ban_lifted10
ban_expired10
member_timed_out10
timeout_lifted10
timeout_expired10
member_muted10/15; server mute ctx null, Mute for everyone ctx = voice channel
mute_lifted10/15
mute_expired10/15
report_updated10
report_forwarded10; restricted
report_evidence_preserved10; restricted
policy_updated10
community_updated09
community_secured09
channel_created09
channel_updated09
channel_deleted09
channel_secured09
channel_history_deleted09
invite_revoked09
bot_admitted09
history_shared14; targetType history_share
federation_blocked06
federation_unblocked06
address_assigned01; operator; restricted
address_released01; operator; restricted
server_key_incident21; operator; restricted

AuditTargetType enum

Specification
10 §11.2
Values
ValueMeaning
member
domain
role
overwrite
message
ban
timeout
mute
report
channel
invite
community
policy
bot
history_share
server

BanScope enum

Specification
10 §9.3
Values
ValueMeaning
communityban_members; membership, channels, calls, invites, joins
serveradmins only; address only; plus DMs, remote sessions, dm.request, local account suspended

BanTargetType enum

Specification
10 §9.1
Values
ValueMeaning
address
domaincommunity scope only

EvidenceSource enum

Specification
10 §10.2
Values
ValueMeaning
serverstored copy of the server holding the report
reporterreporter-supplied SealedMessage copy accepted
originfrom the forwarding server

ForwardedSecurity enum

Specification
10 §10.9
Values
ValueMeaning
insecure
secure

ItemVerificationResult (14 §13.5) enum

Specification
10 §10.2
Values
ValueMeaning
verified
plaintext
not_found
credential_invalid
bad_signature
bad_key
decrypt_failed
bad_content
not_referenced

MlsRemovalReason (13's, triggered here) enum

Specification
10 §8.8
Values
ValueMeaning
kickedkick
bannedban
participant_removedgroup DMs under server-scope ban
lost_accessloss of view_channel

ModerationAction enum

Specification
10 §13.2
Values
ValueMeaning
kick
ban
timeout
server_mute
restrictionnot further defined

NotForwardableReason enum

Specification
10 §10.9
Values
ValueMeaning
not_allowedreporter didn't allow
same_server
nothing_verified
already_forwarded
not_forwardable_kind

OverwriteTargetType enum

Specification
10 §5.1
Values
ValueMeaning
role
member

Permission enum

Specification
10 §3.1
Values
ValueMeaning
view_channelchannel; default in everyone. See channel, read timeline/history, receive events, join MLS group, listen to call. Without it all other channel permissions void.
send_messageschannel; default. Post messages, replies, edit own.
add_reactionschannel; default. Add reactions (removing own always allowed).
attach_fileschannel; default. Upload attachments.
mention_everyonechannel; not default. Make mentionAll notify; without it mentionAll is recorded false, never refused.
speak_and_sharechannel; default. Mic audio, screen video/sound, webcam in voice calls.
mute_memberschannel; not default. Mute for everyone (15 §3.6); at community level server mutes; speak_and_share-only member overwrites.
manage_messageschannel; not default. Delete others' messages and remove others' reactions.
create_inviteschannel; default. Create invites landing in this channel.
manage_channelschannel; not default. Community level: create channels; channel: edit, delete, upgrade to secure.
manage_roleschannel; not default. Community level: manage roles below top position; channel: edit overwrites.
share_historychannel; not default. Manual history sharing in secure channels; bots never share.
kick_memberscommunity. Kick.
ban_memberscommunity. Community-scope bans.
timeout_memberscommunity. Timeouts.
manage_invitescommunity. List/revoke all invites, allowSignUp:false invites, approve join requests, never-expiring invites.
manage_communitycommunity. Community settings and anti-spam policy; not the server upgrade.
manage_botscommunity. Manage bot accounts homed here; admit bots; change bots' roles.
manage_reportscommunity. Work the report queue.
view_audit_logcommunity. Read the audit log.

PermissionScope enum

Specification
10 §3.2
Values
ValueMeaning
channelrows 1–12; overwritable
communityrows 13–20; never in overwrites

ReportCategory enum

Specification
10 §10.2, §10.3
Values
ValueMeaning
spamSpam
harassmentHarassment or bullying
hateHate
violenceViolence or threats
sexual_contentSexual content
child_safetyA child is at risk; always visible to admins
self_harmSelf-harm
illegalSomething illegal; always visible to admins
impersonationPretending to be someone
otherSomething else

ReportItemKind enum

Specification
10 §10.2
Values
ValueMeaning
message
edit
reaction

ReportItemRole enum

Specification
10 §10.2
Values
ValueMeaning
reported
contextnever forwarded

ReportKind enum

Specification
10 §10.2
Values
ValueMeaning
messagesone or more reported messages
membera person's behaviour, no message

ReportOrigin enum

Specification
10 §10.2
Values
ValueMeaning
localfiled at hosting server
forwardedreceived via report.forwarded
reporter_homefiled at reporter's home server (§10.10)

ReportOutcome enum

Specification
10 §10.6
Values
ValueMeaning
action_takenresolution action_taken
reviewedany other resolution

ReportResolution enum

Specification
10 §10.6
Values
ValueMeaning
action_taken
no_action
invalidcontent not as reported or verification failed
duplicate
expired365 days old

ReportRouting enum

Specification
10 §10.2
Values
ValueMeaning
moderatorsdefault
adminsserver admins only

ReportStatus enum

Specification
10 §10.6
Values
ValueMeaning
open
in_reviewclaimed; assignee set
resolved
withdrawnfinal

ReportVerification enum

Specification
10 §10.2
Values
ValueMeaning
verifiedevery reported item verified or plaintext
partialsome
failednone
not_applicablemember report

SystemRole enum

Specification
10 §4.1
Values
ValueMeaning
everyoneposition 0, implicit
adminhighest position; every permission
nullordinary role

WithheldReason enum

Specification
10 §10.2, §10.5
Values
ValueMeaning
security.account_requiredinsecure account
security.device_not_enrolledunenrolled device

11 Messages, attachments, read state and presence

Attachment object

Server-side record of an uploaded blob.

Specification
11 §14.1
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesAttachment ID.
server-generated
ctxstringYesContext uploaded to.
can be bound only to an entry in this context
purposeAttachmentPurposeYesPurpose.
file or thumbnail; always file in secure contexts; unknown treated as file
stateAttachmentStateYespending, uploaded, bound or deleted.
unknown treated as deleted
blobBytesintegerYesExact blob size.
mimestringYesDeclared media type.
secure: always application/octet-stream
sha256base64urlYesSHA-256 of the blob bytes.
uploaderstring (canonical address)YesUploading account.
createdAttimestampYesWhen the upload was created.
expiresAttimestamp|nullYesExpiry if not bound.
createdAt + 24 h while pending/uploaded; otherwise null
miduuidv7|nullYesRoot message it is bound to.
set when bound

AttachmentBlob binary-frame

The stored bytes: the file itself (insecure) or its SVF1 ciphertext (secure; 43-byte header then segments, padded by SVF1, 04 §10).

Specification
11 §14.3

AttachmentCreateRequest object

POST …/attachments body.

Specification
11 §14.2
Fields
NameTypeRequiredMeaning and constraints
purposeAttachmentPurposeNofile or thumbnail.
default file; MUST be file in a secure context (thumbnail refused 400 core.invalid_request)
blobBytesintegerYesSize of the blob to upload.
limits of §14.6
mimestringYesMedia type.
secure: MUST be application/octet-stream
sha256base64urlYesSHA-256 of the blob bytes.

AttachmentCreateResponse object

201 response to upload creation.

Specification
11 §14.2
Fields
NameTypeRequiredMeaning and constraints
attachmentAttachmentYesThe new object.
state pending
uploadUploadInstructionsYesWhere and how to send the bytes.

AttachmentRef object

Describes one uploaded file inside a content object; carries the file key in secure contexts.

Specification
11 §3.6
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesUploaded file.
Attachment ID returned by upload (§14.2); all ids in one content object distinct
namestringYesFile name for display and saving.
1 to MAX_FILENAME_BYTES (255) bytes UTF-8; no '/', '', U+0000-U+001F or U+007F
mimestringYesMedia type.
RFC 6838 type/subtype, lowercase, no parameters; application/octet-stream if unknown
sizeintegerYesFile size.
1 to maxAttachmentBytes; bytes before encryption; 0-byte files not supported
sha256base64urlNoSHA-256 of the file before encryption.
Insecure: optional. Secure: required
keybase64urlNoFile key.
Secure: required (32-byte K_file, 04 §10.2). Insecure: MUST be absent
widthintegerNoPixel width (images, video).
1-65,535
heightintegerNoPixel height (images, video).
1-65,535
durationMsintegerNoDuration for audio and video.
thumbThumbnailRefNoPreview image (§14.3).
spoilerbooleanNoShow preview blurred until tapped.
default false
voicebooleanNoRecorded voice message; clients show a player.
default false

ContentWithheldMessage object

Only inside a dm.request to a secure home server for an insecure DM: a plain Message object without content, with "contentWithheld": true. Never on the timeline API or client WebSocket.

Specification
11 §8.3
Fields
NameTypeRequiredMeaning and constraints
contentWithheldbooleanYesContent omitted until Accept.
true

DeleteContent object

Deletes the author's own root message or reaction entry.

Specification
11 §3.7.3
Fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesEntry to delete.
mid of a root message or a reaction entry

DeleteEvent object

Payload of message.deleted.

Specification
11 §8.2
Fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesDeleted root message.
byDeletedByYesauthor or moderator.
unknown treated as moderator
miduuidv7NoDelete entry's mid.
when by is author
deletedAttimestampYesWhen.

Deletion object

How a root message was deleted.

Specification
11 §5.4
Fields
NameTypeRequiredMeaning and constraints
attimestampYesWhen it was deleted.
byDeletedByYesWho deleted it.
author or moderator; unknown treated as moderator

EditContent object

Complete self-contained replacement of a root message's content.

Specification
11 §3.7.1
Fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesMessage being edited.
mid of the root message (never an earlier edit)
textstringYesComplete new text.
rules of §3.2 and §3.3; may be empty only if attachments non-empty
mentionsarray<string>NoAs in MessageContent, for the new text.
default []
mentionAllbooleanNoAs in MessageContent, for the new text.
default false
replyToReplyRef|nullNoCopy of the root's replyTo (an edit never changes it).
default null; MUST equal the root's replyTo member by member
attachmentsarray<AttachmentRef>NoAttachments that remain.
default []; each MUST be one of the target's current attachments with identical members; can remove, never add

EditEntry object

Latest edit of a sealed root message (plain edits are applied to content).

Specification
11 §5.3
Fields
NameTypeRequiredMeaning and constraints
miduuidv7YesEdit entry mid.
seqintegerYesIts seq.
senderSenderYesEditing account and device.
same account as root; did may differ
createdAttimestampYesServer timestamp.
sealedSealedMessageYesThe edit ciphertext.
kind edit, ref = root mid; plaintext is EditContent
mentionsarray<string>YesEdit's server-validated hint.
mentionAllbooleanYesEdit's server-validated mentionAll.
attachmentIdsarray<uuidv7>NoIDs still bound after this edit.
when the root had bound attachments

EditEvent object

Payload of message.edited.

Specification
11 §8.2
Fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesEdited root message.
miduuidv7YesEdit entry mid.
carrierCarrierTypeYesplain or sealed.
senderSenderYesEditing account and device.
createdAttimestampYesEdit's server timestamp (new editedAt).
contentEditContentNoThe edit.
plain
sealedSealedMessageNoThe edit.
sealed
mentionsarray<string>NoEdit's validated hint.
sealed
mentionAllbooleanYesEdit's validated mentionAll.
attachmentIdsarray<uuidv7>NoRemaining IDs.
sealed, when target had bound attachments

EntryAck object

201 response to a posted entry (also returned for idempotent resends).

Specification
11 §4.6
Fields
NameTypeRequiredMeaning and constraints
miduuidv7YesThe entry's mid.
kindEntryKindYesThe entry's kind.
seqintegerYesseq assigned.
createdAttimestampYesServer timestamp.
non-decreasing in seq within a context

MentionToken other

In-text token grammar: <@addr> user mention, <#addr> channel reference, <@everyone>; addr must be canonical; inside code is literal.

Specification
11 §3.4

Message object

Folded current view of one root message (or tombstone); members keyed on the entry's carrier type.

Specification
11 §5.2
Fields
NameTypeRequiredMeaning and constraints
typestringNoItem type discriminator.
"message"; present in timeline pages only
miduuidv7YesRoot message mid.
ctxstringNoContext reference.
required in HTTP; omitted in events
seqintegerNoseq at which the root was accepted.
required in HTTP; omitted in events
carrierCarrierTypeYesCarrier type of the root message.
plain or sealed; unknown treated as sealed (placeholder)
senderSenderYesWho sent it.
createdAttimestampYesServer timestamp of acceptance.
contentMessageContentNoCurrent content (root or latest edit).
plain and not deleted
sealedSealedMessageNoRoot SealedMessage as posted; absent once edited.
sealed, not deleted, not edited
editEditEntry|nullNoLatest edit (self-contained) or null.
sealed only
mentionsarray<string>NoServer-validated mention hint of the root.
sealed only
mentionAllbooleanYesServer-validated mentionAll: true only if asked for and permitted.
attachmentIdsarray<uuidv7>NoIDs currently bound (root's or latest edit's).
sealed, when any are bound
editedAttimestamp|nullYesTime of latest edit or null.
deletedDeletion|nullYesnull or how it was deleted.
reactionsarray<ReactionSummary>NoAggregated plain reactions.
required unless deleted; may be empty
reactionEntriesarray<ReactionEntry>NoInlined sealed reaction entries.
when there are sealed reaction entries; up to INLINE_REACTION_ENTRIES (100), oldest first
reactionEntryCountintegerNoTotal sealed reaction entries; fetch rest via §7.3 if larger than inlined.
with reactionEntries
updatedSeqintegerYesseq of latest entry that changed this message (creation, edit, reaction add/remove, deletion).

MessageContent object

Content object of a root message; sent as content (insecure) or as SealedMessage plaintext (secure).

Specification
11 §3.2
Fields
NameTypeRequiredMeaning and constraints
textstringYesMessage text.
SV-Markdown (§3.3); at most MAX_TEXT_CHARS (4,000) Unicode scalar values; may be empty (or whitespace-only) only if attachments non-empty; no U+0000-U+001F except TAB/LF, no U+007F/U+2028/U+2029; CR LF and lone CR converted to LF
mentionsarray<string>NoUsers mentioned by name.
default []; canonical addresses; no duplicates; at most MAX_MENTIONS (50); must equal set of user-mention tokens outside code
mentionAllbooleanNoAsks to notify everyone; effect decided by server (§4.4).
default false; true iff text contains <@everyone> token
replyToReplyRef|nullNoRoot message replied to (§3.5).
default null
attachmentsarray<AttachmentRef>NoAttached files (§3.6).
default []; at most MAX_ATTACHMENTS (10)

Also described in 00 §7.4.

MessagePage object

Timeline page response with coverage, visibility ranges, grants and purge watermark.

Specification
11 §7.1
Fields
NameTypeRequiredMeaning and constraints
itemsarray<Message|SystemItem>YesVisible timeline items, including tombstones, excluding expired/purged.
ascending seq (ascending updatedSeq for changedAfter); every item has type
hasMorebooleanYesbefore/newest: older exist; after/changedAfter: newer exist; around: hasMoreBefore or hasMoreAfter.
hasMoreBeforebooleanNoOlder items exist.
only for around
hasMoreAfterbooleanNoNewer items exist.
only for around
headSeqintegerYesContext's latest seq (any durable event) when read.
rangesarray<[integer, integer|null]>Yesseq ranges the caller may read.
ascending, merged; null end = open; [] if none
grantsarray<[integer, integer]>Yesseq ranges of caller's VisibilityGrants (14); only sealed items served inside.
ascending, merged; [] if none; always [] in insecure contexts
withheldBeforeSeqinteger|nullYesvisibleFromSeq when earlier content items exist that aren't served; client shows K6 there.
secure only; null otherwise
purgedThroughSeqintegerYesEvery root message with seq <= this has been purged.
0 if none

Mid other

Client-generated lowercase hyphenated UUIDv7; 16-byte binary form = 32 hex digits decoded big-endian.

Specification
11 §2.4

OutboxItem other

Client-local persistent queue record (not on the wire).

Specification
11 §13.2
Fields
NameTypeRequiredMeaning and constraints
miduuidv7YesEntry id.
generated at creation; never changes
ctxstringYesDestination context.
serverstringYesDestination hosting server.
kindEntryKindYesAs in PostEntry.
targetuuidv7NoAs in PostEntry.
contentobjectYesContent.
plaintext content object
composedModestringYesContext mode when the user created the entry.
insecure or secure
lastBodyPostEntryNoExact PostEntry last sent.
attemptedbooleanYesWhether any request with unknown/failed-in-transit outcome was sent.
queuedAttimestampYesWhen the user created it.
stateOutboxStateYes§13.3.
lastErrorobject (problem)NoLast problem object received.

OwnPresence object

GET/PUT /v1/me/presence response: own chosen status and session idle flag.

Specification
11 §11.2
Fields
NameTypeRequiredMeaning and constraints
statusChosenStatusYesChosen status.
default online for a new account
statusTextstring|nullYesCustom status.
at most MAX_STATUS_CHARS (128) Unicode scalar values, no line breaks
statusEmojistring|nullYesStatus emoji.
one emoji, as reaction keys
clearAttimestamp|nullYesWhen server clears statusText and statusEmoji.
idlebooleanYesCalling session's idle flag.
effectiveEffectiveStatusYesEffective status others see on this server.
updatedAttimestampYesWhen account-level members last changed.

OwnPresenceUpdate object

PUT /v1/me/presence body.

Specification
11 §11.2
Fields
NameTypeRequiredMeaning and constraints
statusChosenStatusNoChosen status.
absent: unchanged; if any of status/statusText/statusEmoji/clearAt present, all four MUST be present
statusTextstring|nullNoCustom status.
absent: unchanged; null clears
statusEmojistring|nullNoStatus emoji.
absent: unchanged; null clears
clearAttimestamp|nullNoAuto-clear time.
absent: unchanged; null = no auto clear; otherwise future time at most 30 days ahead
idlebooleanNoSession idle flag.
absent: unchanged; sets only the calling session's flag

PostEntry object

Request body (carrier) for POST /v1/contexts/{ctx}/messages; exactly one of content or sealed.

Specification
11 §4.2
Fields
NameTypeRequiredMeaning and constraints
miduuidv7YesIdempotency key; bound into K_msg in secure contexts.
client-generated; grammar §2.4; never checked against server clock
kindEntryKindNoEntry kind.
default message; one of message, edit, reaction, delete
targetuuidv7NoTarget mid, in cleartext.
required for edit, reaction, delete; absent for message; in a secure carrier MUST equal sealed.ref
contentMessageContent|EditContent|ReactionContent|DeleteContentNoContent object for kind.
insecure carrier: required; secure: MUST be absent
sealedSealedMessageNoSealedMessage (14) whose padded plaintext is the content object.
secure carrier: required; insecure: MUST be absent
mentionsarray<string>NoMention hint (D-063): content mentions plus reply author when ping true (unless sender).
secure message/edit only, otherwise absent; at most 50; [] when user turned mention_hints off
mentionAllbooleanNoMention hint: equals content mentionAll.
secure message/edit only, otherwise absent; always truthful
attachmentIdsarray<uuidv7>NoIDs of every attachment and thumbnail the encrypted content references.
secure message: required when content has attachments; secure edit: required when target has bound attachments ([] removes all), must be subset of target's bound IDs; otherwise absent

Presence object

What others see (effective status); never reveals invisible, idle flags, device counts or last-seen.

Specification
11 §11.3
Fields
NameTypeRequiredMeaning and constraints
addrstring (canonical address)YesCanonical address.
namestringYesDisplay name (01).
statusEffectiveStatusYesEffective status.
online, idle, dnd or offline; unknown treated as online
statusTextstring|nullYesCustom status.
null whenever status is offline
statusEmojistring|nullYesStatus emoji.
null whenever status is offline
updatedAttimestampYesWhen this presence last changed.

PresenceSnapshot object

Payload of presence.snapshot sent after subscribing to a context.

Specification
11 §11.5
Fields
NameTypeRequiredMeaning and constraints
itemsarray<Presence>YesSnapshot.
non-offline accounts with access to the context; at most PRESENCE_SNAPSHOT_MAX (1,000); no order
truncatedbooleanYestrue if more existed.

PurgeEvent object

Payload of message.purged (prefix purge watermark).

Specification
11 §8.2
Fields
NameTypeRequiredMeaning and constraints
throughSeqintegerYesEvery root message with seq <= throughSeq and everything attached is gone.
reasonPurgeReasonYesWhy.
retention, pre_upgrade_deleted or admin; unknown treated as admin

ReactionContent object

Adds one emoji reaction to a root message.

Specification
11 §3.7.2
Fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesMessage reacted to.
mid of a root message
keystringYesThe reaction emoji.
exactly one extended grapheme cluster matching UTS #51 possible_emoji; at most MAX_REACTION_KEY_BYTES (64) bytes UTF-8; compared after removing U+FE0F

ReactionEntry object

One reaction entry (both modes); payload of reaction.added and items of the reactions collection.

Specification
11 §5.3
Fields
NameTypeRequiredMeaning and constraints
miduuidv7YesReaction entry mid; removing the reaction = deleting this mid.
targetuuidv7YesRoot message mid.
seqintegerNoIts seq.
required in HTTP; omitted in events
carrierCarrierTypeYesplain or sealed.
senderSenderYesWho reacted.
createdAttimestampYesServer timestamp.
keystringNoReaction key.
plain only
sealedSealedMessageNoEncrypted reaction.
sealed only; kind reaction, ref = root mid; plaintext ReactionContent

ReactionRemovedEvent object

Payload of reaction.removed.

Specification
11 §8.2
Fields
NameTypeRequiredMeaning and constraints
targetuuidv7YesRemoved reaction entry's mid.
messageuuidv7YesRoot message it was on.
byDeletedByYesauthor or moderator.
unknown treated as moderator
miduuidv7NoDelete entry's mid.
when by is author

ReactionSummary object

Aggregate of plain reaction entries per distinct key, ordered by seq of first reaction.

Specification
11 §5.3
Fields
NameTypeRequiredMeaning and constraints
keystringYesReaction key as first sent.
countintegerYesNumber of accounts with a live reaction entry with this key.
keys compared after removing U+FE0F
mebooleanNoWhether the requesting account is among them.
present only in HTTP responses

ReadState object

Per-account, per-context read position plus unread/mention counts.

Specification
11 §9.1
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe context.
readSeqintegerYesEverything with seq <= readSeq counts as read.
>= 0; 0 = nothing read
updatedAttimestamp|nullYesWhen readSeq last changed.
headSeqintegerYesContext's latest seq.
lastMessageSeqintegerYesseq of newest visible non-deleted root message.
0 if none; grant-only items don't count
unreadCountintegerYesVisible non-deleted root messages with seq > readSeq.
0-1,000 (capped); excludes own messages and grant-only items
unreadCappedbooleanYestrue if true count exceeds 1,000 (clients show '999+').
mentionCountintegerYesUnread messages mentioning this account (mentions, validated mentionAll, reply ping).
0-1,000; from hints in secure contexts

ReadStateUpdate object

PUT …/read body.

Specification
11 §9.2
Fields
NameTypeRequiredMeaning and constraints
readSeqintegerYesNew read position.
>= 0; values above headSeq lowered to headSeq
markUnreadbooleanNofalse: stored = max(old, readSeq); true: stored = readSeq even if lower.
default false

ReducedPayload object

{"withheld": true} (optionally with target on replay of edited/reaction events); envelope keeps t, ctx, seq, id, ts.

Specification
11 §8.3
Fields
NameTypeRequiredMeaning and constraints
withheldbooleanYesPayload withheld; advance position past the event and do nothing else.
always true
targetuuidv7NoThe event's target.
only on replayed message.edited / reaction.added whose content was since deleted

ReplyRef object

Reference to the root message being replied to (one level, no threads).

Specification
11 §3.5
Fields
NameTypeRequiredMeaning and constraints
miduuidv7Yesmid of the root message replied to.
must be a root message in the same context
authorstring (canonical address)YesSender of the parent, so the client can show 'Replying to Bob' before loading the original.
canonical address (D-032)
pingbooleanNoWhether the reply notifies author.
default true

Sender object

Server-filled sender of a stored entry, taken from the session; webhook senders have no addr/did.

Specification
11 §5.1
Fields
NameTypeRequiredMeaning and constraints
addrstring (canonical address)NoCanonical address of the sending account.
required except for webhooks
namestringYesDisplay name at time of production.
display name (01) or webhook name; prepared local part if name failed 01 §6.4
didstringNoDevice ID of the sending device.
required except for webhooks
kindSenderKindNouser, bot or webhook.
default user; unknown treated as bot
webhookuuidv7NoWebhook ID.
only when kind is webhook

SystemItem object

Timeline item owned by another document, carried in the form of its event.

Specification
11 §7.1
Fields
NameTypeRequiredMeaning and constraints
typestringYesItem type discriminator.
"event"
seqintegerYesEvent's seq.
tstringYese.g. channel.security_changed, member.joined.
event type as owner registered it
tstimestampYesEvent's ts.
dobjectYesEvent payload as its owner defines it for this viewer.

ThumbnailRef object

Preview image of an attachment, itself a separate upload.

Specification
11 §3.6
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesThumbnail upload ID.
Attachment ID of the thumbnail upload; purpose thumbnail (insecure) or file (secure)
mimestringYesThumbnail media type.
image/webp, image/jpeg or image/png
sizeintegerYesThumbnail size.
bytes before encryption; at most THUMB_MAX_BYTES (256 KiB)
widthintegerYesPixel width.
at most THUMB_MAX_PX (512) on the longer side
heightintegerYesPixel height.
at most THUMB_MAX_PX (512) on the longer side
sha256base64urlNoIntegrity hash of the thumbnail plaintext.
Insecure: optional. Secure: required. SHA-256 of thumbnail file before encryption
keybase64urlNoThe thumbnail's own SVF1 file key.
Secure: required (32 bytes). Insecure: MUST be absent

Tombstone object

A Message object with deleted set, mentionAll false, editedAt null, and content, sealed, mentions, attachmentIds, edit, reactions, reactionEntries, reactionEntryCount absent. Kept at least TOMBSTONE_MIN (30 days).

Specification
11 §5.4

TypingEvent object

Payload of typing.started / typing.stopped.

Specification
11 §10.2
Fields
NameTypeRequiredMeaning and constraints
senderSenderYesTyping account.
did is the typing device
expiresInMsintegerNoHow long to show it.
only on typing.started: 8,000

TypingRequest object

POST …/typing body.

Specification
11 §10.1
Fields
NameTypeRequiredMeaning and constraints
typingbooleanYestrue: typing; false: stopped without sending.

UploadInstructions object

The upload member: URL, method, headers and deadline for the blob PUT.

Specification
11 §14.2
Fields
NameTypeRequiredMeaning and constraints
urlstring (https URL)YesWhere to PUT the bytes.
{base}/v1/contexts/{ctx}/attachments/{id}/content or a pre-signed object-store URL (capability URL, >=128 bits randomness)
methodstringYesHTTP method.
always PUT
headersobject<string,string>YesHeaders to send with the PUT.
may be empty; client MUST send unchanged
expiresAttimestampYesLatest time the PUT may start.
at most UPLOAD_URL_TTL (10 min) after creation

Webhook object

Incoming webhook for one insecure channel.

Specification
11 §15.2
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesWebhook ID.
server-generated
ctxstringYesThe channel.
namestringYesShown as sender name.
1-80 Unicode scalar values; no '@', '<', '>', control characters or line breaks
stateWebhookStateYesactive or disabled.
unknown treated as disabled
disabledReasonstring|nullYesWhy disabled.
admin, secure_context, or null when active
allowMentionAllbooleanYesWhether messages may use <@everyone>.
default false
createdBystring (canonical address)YesCreator.
createdAttimestampYesCreation time.
lastUsedAttimestamp|nullYesLast accepted execution.
tokenstringNoBearer secret for execution.
only in create and rotate responses; 'whk_' + base64url of 32 random bytes; server stores only a hash

WebhookCreateRequest object

POST …/webhooks body.

Specification
11 §15.3
Fields
NameTypeRequiredMeaning and constraints
namestringYesName.
as Webhook.name
allowMentionAllbooleanNoAllow <@everyone>.
default false

WebhookExecuteRequest object

POST …/webhooks/{id}/messages body.

Specification
11 §15.4
Fields
NameTypeRequiredMeaning and constraints
miduuidv7NoIdempotency key.
if absent the server generates one and the request isn't idempotent
contentMessageContentYesMessage content.
only text, mentions, mentionAll; replyTo and attachments MUST be absent or empty

WebhookPatchRequest object

PATCH …/webhooks/{id} body.

Specification
11 §15.3
Fields
NameTypeRequiredMeaning and constraints
namestringNoNew name.
stateWebhookStateNoEnable or disable.
state disabled sets disabledReason admin; can't enable when disabledReason is secure_context
allowMentionAllbooleanNoAllow <@everyone>.

AttachmentPurpose enum

Specification
11 §14.1
Values
ValueMeaning
fileA file (always in secure contexts; unknown treated as file)
thumbnailInsecure thumbnail upload

AttachmentState enum

Specification
11 §14.1
Values
ValueMeaning
pendingCreated, bytes not verified
uploadedVerified, not yet referenced
boundReferenced by a root message
deletedGone; unknown values treated as deleted

CarrierType enum

Specification
11 §2.1, §5.2
Values
ValueMeaning
plainPosted with an insecure carrier (content)
sealedPosted with a secure carrier (SealedMessage); unknown values treated as sealed

ChosenStatus enum

Specification
11 §11.1
Values
ValueMeaning
onlineNormal; becomes idle when every connected session is idle
idleShown as away
dndDo not disturb; 19 holds back pushes
invisibleAppear offline to everyone

ComposedMode enum

Specification
11 §13.2
Values
ValueMeaning
insecureComposed in an insecure context
secureComposed under a closed lock; never leaves as plaintext without user action

DeletedBy enum

Specification
11 §5.4, §8.2
Values
ValueMeaning
authorDeleted by its sender
moderatorDeleted by a moderator; unknown values treated as moderator

EffectiveStatus enum

Specification
11 §11.1
Values
ValueMeaning
onlineDefault; unknown values treated as online
idleChosen idle or all sessions idle
dndChosen dnd
offlineNo open socket for OFFLINE_GRACE, or chosen invisible

EntryKind enum

Specification
11 §3.1
Values
ValueMeaning
messageNew root message (MessageContent)
editReplace root content (EditContent)
reactionAdd one reaction (ReactionContent)
deleteDelete own root message or own reaction entry (DeleteContent)

InlineBlobContentType enum

Specification
11 §14.4
Values
ValueMeaning
image/pngserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
image/jpegserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
image/gifserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
image/webpserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
video/mp4served with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
video/webmserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
audio/oggserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
audio/mpegserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
audio/mp4served with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream
audio/webmserved with this Content-Type in insecure contexts; all others and all secure blobs as application/octet-stream

NotEditableReason enum

Specification
11 §4.7, §17.1
Values
ValueMeaning
security_changedTarget was sent in the other carrier mode

NotificationTrigger enum

Values
ValueMeaning
mentioncontent.mentions / hint mentions; an edit triggers only for addresses not mentioned by the root or an earlier edit (identified by the edit mid)
replyreplyTo.author with ping (secure: arrives as mention)
mention_allvalidated mentionAll
dm_messageevery root message in a DM or group DM

OutboxState enum

Specification
11 §13.3
Values
ValueMeaning
uploadingAttachments uploading
queuedReady, waiting its turn
sendingRequest in flight
waiting_for_serverServer unreachable or asked to wait
waiting_for_keysSecure encryption state not ready; client fixes itself
waiting_for_actionOnly a person can unblock it
sentAcknowledged 201
failedWon't succeed without the user

PurgeReason enum

Specification
11 §8.2
Values
ValueMeaning
retentionRetention expiry (§12)
pre_upgrade_deletedAdmin deleted pre-upgrade history (09, D-057)
adminOperator purge; unknown values treated as admin

SenderKind enum

Specification
11 §5.1
Values
ValueMeaning
userDefault
botBot account; unknown values treated as bot
webhookWebhook; badge, no addr, not linkable to an account

Also described in 19 §4.4, §5.2.

SVMarkdownConstruct enum

Specification
11 §3.3
Values
ValueMeaning
emphasisx or x
strongx or x
strikethroughx
spoiler||x||
code spanx
fenced code block``` with optional info string
block quote> (1 level)
list- * 1. (3 levels)
hard line breakevery LF
autolinkbare https://, http://, sloppyv://
tokens<@…>, <#…>, <@everyone>
backslash escape\ before ASCII punctuation

ThumbnailMime enum

Specification
11 §3.6
Values
ValueMeaning
image/webp
image/jpeg
image/png

WebhookDisabledReason enum

Specification
11 §15.2
Values
ValueMeaning
adminDisabled via PATCH
secure_contextDisabled by channel upgrade; can never be re-enabled

WebhookState enum

Specification
11 §15.2
Values
ValueMeaning
activeCan execute
disabledCannot execute; unknown values treated as disabled

12 Direct messages and group DMs

CreateDmRequest object

Request body of POST /v1/dms (unnamed in spec).

Specification
12 §7.2
Fields
NameTypeRequiredMeaning and constraints
kindenum DmKindYesDM kind.
direct or group
peerstringNoOther participant.
required for direct; canonical address
participantsarray<string>NoOther initial participants.
required for group; at least 2, at most maxGroupDmParticipants − 1, distinct, not the caller; canonical
expectSecurityenum DmSecurityYesSecurity the client computed (§7.1 step 2).
namestringNoGroup name.
group only; constraints as §6.1
communityHintsarray<string>NoCommunities on caller's list where it saw recipients; only order auto-accept checks.
up to 10 canonical domains
replacesobjectNoClosed predecessor when creating a successor (§13.3).
{ host, ctx }
bootstrapGroupBootstrap (13 §7.4)NoGeneration 1 group bootstrap.
required for direct with expectSecurity secure; MUST be absent for group and for insecure DMs (400 core.invalid_request)
commitCommitSubmission (13 §7.5)NoFirst commit epoch 0→1 adding claimed devices, with its Welcome.
only with bootstrap; required whenever any KeyPackage was claimed

Dm object

The DM as held by the hosting server; returned by POST/GET/PATCH /v1/dms…

Specification
12 §6.1
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
dm:… or gdm:… (§5)
kindenum DmKindYes1:1 or group DM.
direct or group; unknown treated as group
hoststringYesCanonical domain of the hosting server.
canonical domain
securityenum DmSecurityYesCurrent security mode (§11).
insecure or secure; unknown treated as secure (refuse to send plaintext)
stateenum DmStateYesDM state (§6.2).
active, upgrading, encryption_pending, closed; unknown treated as closed
closedReasonenum DmClosedReason|nullYesWhy the DM is closed.
host_secure, peer_deleted, banned when closed; else null
participantsarray<DmParticipant>YesEvery participant the caller may see.
filtered per §6.3/§6.5
ownerstring|nullYesGroup owner (createdBy until the creator first stops being a current participant, then null for good, D-087).
canonical address; null for 1:1 and for groups whose creator has left
namestring|nullYesGroup name.
groups: 1-100 Unicode scalar values, <=400 bytes, NFC, no Cc, no leading/trailing white space, or null; 1:1: always null
createdBystringYesCreator's address.
canonical address
createdAttimestampYesCreation time.
RFC 3339
groupGenerationintegerYesGeneration of the current MLS group (last component of group_id).
0 while no MLS group exists; +1 per new group
securitySinceSeqintegerYesSeq at which current security took effect.
1 if created in current mode, else seq of latest dm.security_changed
lastSeqintegerYesHighest seq in the DM's timeline.
replacesobject|nullYesPredecessor when this DM is a successor (§13), else null.
{ host: domain, ctx: ref }

dm-ref other

1:1 context reference: "dm:" + unpadded base64url of first 16 bytes of SHA-256(UTF8("sv1 dm") || 0x00 || UTF8(P1) || 0x0A || UTF8(P2)), P1 < P2 byte-wise; 22 chars, last char one of AQgw.

Specification
12 §5.1, §5.2

dm.entry_updated payload object

Payload d of S2S dm.entry_updated.

Signed by
S2S request token of the hosting server (06)
Specification
12 §8.6
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
recipientstringYesParticipant concerned.
homed at the receiver
recipientIncstringYesParticipant's incarnation as recorded by hosting server.
kindenum DmKindYesCurrent value.
as §6.1
securityenum DmSecurityYesCurrent value.
as §6.1
stateenum DmStateYesCurrent value.
as §6.1
closedReasonenum DmClosedReason|nullYesCurrent value.
as §6.1
namestring|nullYesCurrent value.
as §6.1
ownerstring|nullYesCurrent value.
as §6.1
replacesobject|nullYesCurrent value.
as §6.1
participantsarray<{addr, name, kind, inc, state, security}>YesParticipants.
as §8.2
yourStateenum ParticipationStateYesRecipient's own participation state.
yourReasonstring|nullYesRecipient's own reason, if any.
lastSeqintegerYesDM's lastSeq.
lastActivityAttimestamp|nullYesTimestamp of latest content event, or null.

dm.request payload object

Payload d of S2S dm.request.

Signed by
S2S request token of the hosting server (06); host MUST equal iss
Specification
12 §8.2
Fields
NameTypeRequiredMeaning and constraints
invitationIduuidv7YesAssigned by the hosting server to this invitation.
batchintegerYesBatch number.
1, 2, 3, …
truncatedbooleanYesTrue when the size limit stopped further events.
ctxstringYesContext reference.
kindenum DmKindYesdirect or group.
hoststringYesCanonical domain of hosting server.
MUST equal the S2S token's iss
recipientstringYesInvited participant.
homed at the receiver
recipientIncstringYesRecipient's incarnation as recorded by the hosting server.
inviter{addr, name, kind, inc}YesThe inviter (sender of the request).
createdBystringYesCreator's canonical address (for host legitimacy check).
participantsarray<{addr, name, kind, inc, state, security}>YesCurrent participants.
filtered as §6.5; recipient's own entry shows pending
securityenum DmSecurityYesDM security at time of this batch.
stateenum DmStateYesDM state.
namestring|nullYesGroup name or null.
replacesobject|nullYesPredecessor when a successor.
{host, ctx}
communityHintsarray<string>NoCopied from creator's/adder's request.
<=10; batch 1 only
identityStatesarray<string>NoIdentityStates of secure participants.
IdentityState JWSs, each at most 24 h old; batch 1 and any batch after an identity change
welcomebase64url|nullYesMLSMessage carrying the Welcome that added the recipient's devices.
secure DMs only, in the batch that first follows it
eventsarray<event envelope>YesDurable DM events (dm.*, message.created, and for secure DMs 13's handshake events).
seq order; from the invitation's start event or after previous batch

dm.response payload object

Payload d of S2S dm.response.

Signed by
S2S request token of the recipient home (06)
Specification
12 §8.5
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
recipientstringYesResponding participant.
MUST be homed at the sender (iss)
recipientIncstringYesResponding account's incarnation.
invitationIduuidv7|nullYesInvitation answered.
null for unblock and responses not tied to one invitation; informative
actionenum DmResponseActionYesaccept, decline, block or unblock.
unknown values ignored
attimestampYesWhen the user (or auto-accept rule) acted; used for last-writer-wins.

DmBlock object

A personal DM block; at most 10,000 per account.

Specification
12 §9.5
Fields
NameTypeRequiredMeaning and constraints
addrstringYesBlocked address.
canonical address
createdAttimestampYesWhen blocked.

DmIndexEntry object

Home server's record of one DM the account takes part in, keyed by (host, ctx).

Specification
12 §9.1
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesAssigned by the home server.
hoststringYesHosting server canonical domain.
ctxstringYesContext reference.
kindenum DmKindYesdirect or group.
stateenum DmIndexEntryStateYesEntry state (§9.2).
unknown treated as left
originenum DmIndexOriginYesoutgoing (registered) or incoming (from dm.request).
participantsarray<{addr, name, kind, inc, state, security}>YesAs §8.2.
empty until first dm.request/dm.entry_updated
securityenum DmSecurity|nullYesLast known security; null until known.
dmStateenum DmState|nullYesLast known Dm state.
closedReasonenum DmClosedReason|nullYesAs §6.1.
namestring|nullYesGroup name.
inviterstring|nullYesInviter's address for incoming entries.
requestIduuidv7|nullYesThe DmRequest for this entry, if filed.
autoAcceptenum AutoAcceptReason|nullYesWhy auto-accepted; null if not.
hiddenbooleanYesUser hid the entry.
default false
declinedAttimestamp|nullYesStart of the 30-day quiet period.
reset to null by unblock
successorobject|nullYesSuccessor once known.
{host, ctx}
replacesobject|nullYesPredecessor.
as §6.1
lastSeqintegerYesFrom latest dm.entry_updated.
0 if unknown
lastActivityAttimestamp|nullYesFrom latest dm.entry_updated or dm.request.
createdAttimestampYesCreated.
updatedAttimestampYesUpdated.
pendingEventsarray<event envelope>NoEvents from an auto-accepted dm.request not yet fetched by devices.
returned by GET /v1/me/dms/{id} only

Also described in 00 §6 HP-9.

DmInviter object

Unnamed inviter object { addr, name, kind, inc } in dm.request and DmRequest (name chosen by extractor).

Specification
12 §8.2
Fields
NameTypeRequiredMeaning and constraints
addrstringYes
namestringYes
kindenum ParticipantKindYes
incstringYes

DmParticipant object

One DM participant at the hosting server.

Specification
12 §6.3
Fields
NameTypeRequiredMeaning and constraints
addrstringYesParticipant address.
canonical address
namestringYesDisplay name as last known to the hosting server; clients MUST check it against addr (01).
display name; falls back to prepared local part (01 §6.5)
kindenum ParticipantKindYesAccount kind.
user or bot; unknown treated as bot
incstringYesIncarnation as last verified by the hosting server; a different inc for the same addr is a different account.
account incarnation (05 §11.1); never changes for a participant
stateenum ParticipationStateYesParticipation state (§6.3), filtered per §6.5.
unknown treated as removed
roleenum ParticipantRoleYesRole.
owner or member; unknown treated as member; always member in 1:1
securityenum DmSecurityYessec of this participant as last verified by the hosting server.
ikfstring|nullYesIdentity key thumbprint; informative only, clients MUST use their own pins (07).
RFC 7638 thumbprint when security is secure, else null
addedBystringYesInviter.
canonical address; equals addr for the creator
addedAttimestampYesTimestamp of the latest invitation.
joinedSeqintegerYesFirst seq this participant may read (§12.5).
reasonenum ParticipantReason|nullYesWhy the participant left or was removed.
for left/removed only; unknown treated as removed

DmParticipantSummary object

Unnamed participant item { addr, name, kind, inc, state, security } in dm.request, dm.entry_updated, DmIndexEntry and DmRequest (name chosen by extractor).

Specification
12 §8.2
Fields
NameTypeRequiredMeaning and constraints
addrstringYes
namestringYes
kindenum ParticipantKindYes
incstringYes
stateenum ParticipationStateYesfiltered per §6.5
securityenum DmSecurityYes

DmRef object

Unnamed { host, ctx } object used by replaces and successor (name chosen by extractor; spec doesn't name it).

Specification
12 §6.1, §9.1
Fields
NameTypeRequiredMeaning and constraints
hoststringYesHosting server.
canonical domain
ctxstringYesContext reference.

DmRequest object

A message request waiting at the recipient's home; list form omits events and welcome and carries preview.

Specification
12 §10.1, §10.3
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesAssigned by the home server.
entryIduuidv7YesThe DmIndexEntry.
hoststringYesas §8.2, from latest batch
ctxstringYesas §8.2, from latest batch
kindenum DmKindYesas §8.2, from latest batch
securityenum DmSecurityYesas §8.2, from latest batch
namestring|nullYesas §8.2, from latest batch
replacesobject|nullYesas §8.2, from latest batch
inviter{addr, name, kind, inc}YesInviter.
participantsarray<{addr, name, kind, inc, state, security}>YesParticipants.
as §8.2
stateenum DmRequestStateYesRequest state.
unknown treated as withdrawn
createdBystringYesCreator.
as §8.2
eventsarray<event envelope>YesAll received events. Omitted in list form.
every batch, seq order; no plaintext content when home is a secure server
welcomebase64url|nullYesWelcome. Omitted in list form.
as §8.2
identityStatesarray<string>YesVerified IdentityStates (§8.4 step 7).
serverKeysobjectYessign keys for each IdentityState issuer and, for secure DMs with a welcome, the host's mls-external-sender keys.
keyed by canonical domain; values array<ServerKey> (02 §11.1) with purpose and status; {} when none
truncatedbooleanYesMore events exist than the request carries.
receivedAttimestampYesReceived.
updatedAttimestampYesUpdated.
expiresAttimestampYesExpiry.
receivedAt + 90 days
previewevent envelope|nullNoFirst event's envelope, or null; replaces events and welcome in list items.
list form only (GET /v1/me/dm-requests)

DmSettings object

Account's DM settings.

Specification
12 §9.4
Fields
NameTypeRequiredMeaning and constraints
autoAcceptenum AutoAcceptSettingYesWho can message without a request.
default contacts_and_communities; unknown treated as default
requestNotificationsbooleanYesWhether a new message request creates a notification record (19).
default true

gdm-ref other

Group context reference: "gdm:" + lowercase hyphenated UUIDv7 generated by the hosting server; never reused.

Specification
12 §5.1, §5.4

MLS group_id for DMs other

sv1:<host>:<ctx>:<generation> (generation 1 at creation; groupGeneration + 1 at an upgrade).

Specification
12 §7.1, §11.4

AutoAcceptReason enum

Specification
12 §9.1, §10.2
Values
ValueMeaning
outgoingrule (b): R also started this DM
everyonerule (a): setting is everyone
accepted_dmrule (d): S in an active DM of R
shared_communityrule (e): shared community ≤200 members
successorrule (c): successor of an accepted closed DM

AutoAcceptSetting enum

Specification
12 §9.4
Values
ValueMeaning
contacts_and_communitiesdefault; rules (b)-(e)
contacts_onlyrules (b)-(d)
everyonerule (a): accept every non-blocked request

CallLoggedPhase enum

Specification
12 §16.1
Values
ValueMeaning
startedcall created; a content event
endedcall ended

DmClosedMarker enum

Specification
12 §16.1
Values
ValueMeaning
K5host_secure close
nullno marker (e.g. banned)

DmClosedReason enum

Specification
12 §6.1
Values
ValueMeaning
host_securehosting server became secure (§13)
peer_deletedpeer account deleted / new incarnation (§6.4)
bannedparticipant has a server-scope ban at the host (10 §9.4 step 7)

DmIndexEntryState enum

Specification
12 §9.2
Values
ValueMeaning
requestedmessage request waiting
activeuser takes part
declineduser declined; kept 30 days
blockeduser blocked the inviter of this 1:1 DM
leftleft/removed/withdrawn; unknown treated as left
closedhost closed a DM the user had accepted

DmIndexOrigin enum

Specification
12 §9.1
Values
ValueMeaning
outgoingregistered by the user (§9.3)
incomingfrom a dm.request

DmInvalidParticipantsReason enum

Specification
12 §17
Values
ValueMeaning
self1:1 names the caller (or group names caller)
duplicateduplicate / already current participant
too_fewgroup with fewer than 2 others
ctx_mismatchctx doesn't match participants

DmKind enum

Specification
12 §6.1
Values
ValueMeaning
direct1:1 DM
groupgroup DM (unknown kind treated as group)

DmRequestState enum

Specification
12 §10.1
Values
ValueMeaning
pendingawaiting user
acceptedaccepted
declineddeclined
blockedblocked
expired90 days passed
withdrawnrecipient no longer current participant or DM closed; unknown treated as withdrawn

DmResponseAction enum

Specification
12 §8.5
Values
ValueMeaning
acceptaccept
declinedecline
blockdecline + block
unblockclear block flags (unknown actions ignored)

DmSecurity enum

Specification
12 §6.1
Values
ValueMeaning
insecureplaintext
secureMLS + SealedMessage; unknown treated as secure

DmState enum

Specification
12 §6.2
Values
ValueMeaning
activenormal operation
upgradingcomputed security secure, MLS group being created; no content accepted
encryption_pendingsecure host, computed security insecure; no content, no calls
closedread-only; unknown states treated as closed

DmStatusLines enum

Specification
12 §11.7
Values
ValueMeaning
Setting up encryption…upgrading, messages wait
Waiting for another member's app to come onlineown identity changed, awaiting_readd
You can write again once Bob turns on encryption.encryption_pending
Waiting to send — the server for this chat isn't reachable right now.host unreachable
Waiting for your server…own home unreachable

DmWarningsAndMarkers enum

Specification
12 §11.6
Values
ValueMeaning
W2pinned contact key changed / downgraded; new-account wording at reopen
W3insecure group, viewer secure, some insecure participant
W6secure bot added / 1:1 with secure bot
W7insecure 1:1, viewer secure, peer insecure; also encryption_pending
W9pinned secure group presented insecure: hard error
G1insecure account hits security.account_required/upgrade_required
G2unenrolled device in secure DM
K1switch to secure
K2switch to insecure / insecure successor of secure 1:1
K4restoring keys from archive / shared messages loading
K5closed host_secure, between old and successor
K6own join/re-add point with withheld earlier items
K7above messages shared with the user
K8where a participant shared messages with another

NotificationRecordKinds (owned by 19) enum

Specification
12 §19
Values
ValueMeaning
dm_requestnew message request; never a content preview
dm_messageauto-accepted DM message
call_ringcall ring

ParticipantKind enum

Specification
12 §6.3
Values
ValueMeaning
useruser account
botbot account; unknown treated as bot

Also described in 15 §2.5.2.

ParticipantReason enum

Specification
12 §6.3
Values
ValueMeaning
leftleft
removedremoved
declineddeclined
encryption_turned_offdowngraded in a secure group
account_deletedaccount deleted
invitation_expiredinvitation expired after 90 days

ParticipantRole enum

Specification
12 §6.3
Values
ValueMeaning
ownercreator while the group has an owner
membereveryone else; always member in 1:1; unknown treated as member

ParticipationState enum

Specification
12 §6.3
Values
ValueMeaning
reservedsecure-group add awaiting MLS commit; expires after 60 s
pendinginvited, not yet accepted
activeaccepted, or the creator
declineddeclined or blocked (1:1 only)
leftleft a group DM
removedremoved from group by another participant or host, or (1:1) deleted; unknown treated as removed

RemoveReasonMapping (12 reason → 13 Remove reason) enum

Specification
12 §12.4
Values
ValueMeaning
left → participant_leftdropped from sv_participants in same commit
removed/declined/invitation_expired → participant_removeddropped in same commit
encryption_turned_off → account_downgradeddropped in same commit
account_deleted → account_deleteddropped in same commit
(identity reset) → identity_changedsv_participants unchanged until a member accepts the new key

SecurityChangedMarker enum

Specification
12 §16.1
Values
ValueMeaning
K1switched to secure
K2switched to insecure (1:1 only)

StateChangedReason enum

Specification
12 §16.1
Values
ValueMeaning
encryption_pendingentered encryption_pending
security_recomputedsecurity recomputed
reopenedDM reopened

13 MLS profile

BootstrapResponse (unnamed in spec) object

201 response of POST …/mls/bootstrap.

Specification
13 §7.4
Fields
NameTypeRequiredMeaning and constraints
groupIdstringYes
generationintegerYes
epochintegerYes0
ekidbase64urlYesekid(0)
seqintegerYesContext seq
commitCommitResultNoonly when a first commit was sent

Commit / GroupInfo / Welcome / KeyPackage MLSMessages other

Carried in JSON as unpadded base64url of the MLSMessage encoding; member name says which object (commit, groupInfo, welcome, keyPackage, proposal). GroupInfo carries exactly ratchet_tree then external_pub extensions.

Signed by
committer leaf (GroupInfo); sender (commit)
Specification
13 §2.1, §3.6

CommitResult object

200 response for an accepted commit; replayed for resubmissions.

Specification
13 §7.5
Fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
epochintegerYesThe new epoch (epoch + 1)
ekidbase64urlYesReference ekid recorded for the new epoch
seqintegerYesContext seq of the mls.handshake event
commitHashbase64urlYesCommit hash
SHA-256 of the commit MLSMessage bytes

CommitSubmission object

Body of POST …/mls/commits; also the commit member next to a bootstrap and in 12's POST /v1/dms.

Specification
13 §7.5
Fields
NameTypeRequiredMeaning and constraints
epochintegerYesEpoch the commit was built in
MUST equal the FramedContent epoch
commitbase64urlYesThe commit
MLSMessage, mls_public_message
groupInfobase64urlYesNew GroupInfo
GroupInfo for epoch+1, signed by committer, with ratchet_tree and external_pub
ekidbase64urlYesekid(epoch + 1) as the committer computed it; becomes provisional reference
8 bytes, 11 chars
welcomebase64urlNoWelcome for every added leaf (always with ratchet_tree)
required for DM commits with Add; MUST be absent otherwise

EpochAck object

Body of POST …/mls/epoch-ack (called mls.epoch_ack in 00, 03, 15, 18).

Specification
13 §7.8
Fields
NameTypeRequiredMeaning and constraints
epochintegerYesNewest epoch the device has fully processed
ekidbase64urlYesekid(epoch) as the device computed it (14)
8 bytes, 11 chars
extPubbase64urlYesHash of the external_pub public key the device derived for that epoch (RFC 9420 §8.3)
SHA-256

ExternalSender tls-record

The single external_senders entry naming the hosting server's mls-external-sender key.

Specification
13 §6.2
Fields
NameTypeRequiredMeaning and constraints
signature_keyopaque<V>YesServer key
raw 32-byte Ed25519 public key with ServerMetadata purpose mls-external-sender (02)
credentialCredentialYesServer key ID
credential_type basic (0x0001); identity = UTF-8 "<canonical-domain>#<keyId>"

FederationKeyPackageClaim (unnamed in spec) object

Body of POST /v1/federation/keypackages/claim.

Specification
13 §9.5
Fields
NameTypeRequiredMeaning and constraints
claimantstringYesUser on whose behalf the caller claims
canonical address; domain MUST equal the token's iss (else 403 federation.not_authorized)
purposeKeyPackageClaimPurposeYesClaim purpose
as §9.4
ctxstringNoDM context
as §9.4
claimIduuidv7NoIdempotency key
forwarded unchanged
targetsarray<object>YesTargets
1 to 64 {addr, devices?}, each homed on the receiver; other-domain target gets not_found

group_id other

UTF-8 string "sv1:" host-domain ":" ctx-ref ":" generation (ABNF §4.1); at most 320 bytes; split generation at the last colon.

Specification
13 §4.1
Fields
NameTypeRequiredMeaning and constraints
host-domainstringYesHosting server canonical domain
1*253 lowercase A-label chars; canonical domain, never an alias
ctx-refstringYesContext reference
ch:<uuidv7 lowercase> | gdm:<uuidv7 lowercase> | dm:<22 base64url>
generationintegerYesGroup generation
1..2147483647, no leading zeros

GroupBootstrap object

Normative object for creating a group; embedded unchanged as bootstrap in 09's channel-upgrade PATCH /v1/channels/{id} and 12's POST /v1/dms.

Specification
13 §7.4
Fields
NameTypeRequiredMeaning and constraints
generationintegerYesGeneration being bootstrapped
MUST equal the context's current generation, which MUST be in state none
groupInfobase64urlYesEpoch-0 GroupInfo
epoch-0 GroupInfo; ratchet_tree with exactly one leaf (index 0, the caller) and external_pub
ekidbase64urlYesekid(0) computed by the creator (14)
8 bytes, 11 chars

GroupInfoResponse object

Current GroupInfo with pending proposals; also carried in mls.epoch_conflict and mls.group_exists data.

Specification
13 §7.3
Fields
NameTypeRequiredMeaning and constraints
groupIdstringYesAs in §7.2
generationintegerYesGeneration
epochintegerYesThe GroupInfo's epoch
ekidbase64url|nullYesReference ekid for this epoch
groupInfobase64urlYesGroupInfo uploaded by the epoch's committer or bootstrapper
MLSMessage mls_group_info with ratchet_tree and external_pub
pendingProposalsarray<ServerProposal>YesFull ServerProposal objects for this epoch
identityStatesobjectNoCached IdentityStates of every roster address
map canonical address -> IdentityState JWS; only with include=identityStates (channels only)

HandshakeRecord object

An accepted commit as stored in the handshake log and sent in mls.handshake.

Specification
13 §7.6
Fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup ID
epochintegerYesThe epoch the commit was made in
newEpochintegerYesEpoch after the commit
epoch + 1
kindHandshakeKindYesCommit sender kind
external | member; unknown: process by MLS content
commitbase64urlYesThe commit
MLSMessage exactly as submitted
committerobjectYesCommitter's canonical address, device ID, leaf index
{addr, did, leaf}; leaf is the index in the new epoch
proposalsarray<ServerProposal>YesFull ServerProposal objects the commit references
empty if none
identityStatesarray<string>YesEvidence attached by the server (§8.3)
IdentityState JWSs; never empty (at least the committer's)
ekidbase64urlYesReference ekid of newEpoch: settled value once settled, else committer's provisional value
8 bytes, 11 chars
ekidSettledbooleanYesWhether ekid is settled
always false in the mls.handshake event
commitHashbase64urlYesCommit hash
SHA-256 of the commit MLSMessage bytes
welcomeForarray<object>NoDevices added by Welcome
DMs only; {addr, did} each
attimestampYesAcceptance time

KeyPackage (profile) tls-record

mls10, suite 0x0001, fresh X25519 init_key, LeafNode source key_package with sv_device credential, DSK signature_key, fresh encryption_key != init_key, §3.4 capabilities, empty extensions, lifetime span <= 90 days with not_before <= 1 h in future and not_after after upload; signed.

Signed by
device signing key (DSK)
Specification
13 §9.1

KeyPackageClaim object

Body of POST /v1/keypackages/claim.

Specification
13 §9.4
Fields
NameTypeRequiredMeaning and constraints
purposeKeyPackageClaimPurposeYesWhy KeyPackages are claimed
dm_create|dm_add_person|dm_readd|dm_secure; unknown refused with core.invalid_request
ctxstringNoDM context
dm: or gdm: reference, when it already exists
claimIduuidv7NoClaim idempotency key
client-chosen; MUST be reused on retry; idempotent for 10 min
targetsarray<object>YesTargets
1 to 64 entries {addr: canonical address, devices?: [did,...]}; devices absent = every active device

KeyPackageClaimResult object

Per-target claim results (also the S2S response shape, without unreachable).

Specification
13 §9.4
Fields
NameTypeRequiredMeaning and constraints
resultsarray<object>YesPer-target results
one per target, in request order
results[].addrstringYesThe target
results[].statusKeyPackageClaimStatusYesPer-target status
ok|not_found|not_secure|no_devices|unavailable|rate_limited|unreachable; unknown: treat as unavailable
results[].identityStatestringNoTarget's current IdentityState
JWS; present for ok and no_devices
results[].keyPackagesarray<object>NoClaimed KeyPackages
for ok: {did, keyPackage, lastResort: bool} per device that had one

KeyPackageStatus object

Calling device's KeyPackage inventory.

Specification
13 §9.2
Fields
NameTypeRequiredMeaning and constraints
didstringYesCalling device ID
availableintegerYesRegular KeyPackages available
lastResortbooleanYesWhether a last-resort KeyPackage is stored
lastResortUsedbooleanYesWhether the last-resort KeyPackage has been handed out
lowWatermarkintegerYesLow watermark
10
targetintegerYesRefill target
50

KeyPackageUpload object

Body of POST /v1/me/keypackages.

Specification
13 §9.2
Fields
NameTypeRequiredMeaning and constraints
keyPackagesarray<base64url>YesRegular KeyPackages
0 to 100 KeyPackages (mls_key_package)
lastResortbase64urlNoOne KeyPackage to store as last-resort, replacing any previous one

LeafNode Capabilities tls-record

Required leaf capabilities: versions [mls10], cipher_suites [0x0001], extensions [0xF5A1], proposals [], credentials [0x0001, 0xF5A0]; GREASE allowed and ignored.

Specification
13 §3.4

MlsGroupStatus object

Group status returned by GET …/mls.

Specification
13 §7.2
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe context reference
groupIdstringYesgroup_id of the current generation (even in state none)
generationintegerYesCurrent generation
1..2147483647
stateServerGroupStateYesServer group state (§4.3)
none|active|frozen|retired; unknown: treat as retired and re-fetch after 60 s
epochinteger|nullYesCurrent epoch
null in none and retired
ekidbase64url|nullYesReference ekid of the current epoch (provisional until settled)
null when unknown
ekidSettledbooleanYesWhether the reference is settled
leafCountintegerYesNon-blank leaves, including leaves with pending removal
maxSecureLeavesintegerYesEffective limit for this group
pendingProposalsarray<object>YesPending server proposals for the current epoch
summaries {ref, type, reason, target}
lastCommitAttimestamp|nullYesTime of last accepted commit or bootstrap
selfobject|nullYesCalling device's leaf info
{leaf: int, lastAckedEpoch: int|null, removalPending: bool}; null if no leaf
removedForRemovalReason|nullYes§13.1 reason of the calling device's most recent removal in this generation
set when self is null or removalPending is true and server knows it
bootstrapAllowedbooleanYesWhether this device may bootstrap (§10.1)
false unless state none

MlsReport object

Client MLS diagnostic report.

Specification
13 §7.10
Fields
NameTypeRequiredMeaning and constraints
kindMlsReportKindYesReport kind
verification_failed|commit_unprocessable|fork_suspected|group_info_invalid; unknown stored as other
generationintegerYesGeneration
epochintegerYesThe epoch concerned
commitHashbase64urlNoThe commit concerned
midstringNoMessage ID of the SealedMessage whose ekid differs (§15.3)
required for fork_suspected
subjectobjectNoLeaf or member concerned
{addr, did, leaf}
reasonstringNoShort machine reason, e.g. a 07 §10.6 identity check result, unlisted_identity, ekid_mismatch, epoch_rollback, external_sender
at most 64 characters
detailstringNoFree-text detail
at most 1,024 characters; MUST NOT contain message content or key material

PendingWelcome (unnamed in spec) object

Response of GET …/mls/welcome.

Specification
13 §7.9
Fields
NameTypeRequiredMeaning and constraints
groupIdstringYes
generationintegerYes
epochintegerYesJoin epoch
welcomebase64urlYesmls_welcome
addedByobjectYes{addr, did}

required_capabilities extension tls-record

extension_types [0xF5A1], proposal_types [], credential_types [0x0001, 0xF5A0].

Specification
13 §3.5

ServerProposal object

A pending server (external-sender) proposal with unsigned server annotations; payload of mls.proposal.

Specification
13 §7.7
Fields
NameTypeRequiredMeaning and constraints
groupIdstringYesGroup the proposal belongs to
group_id format §4.1
epochintegerYesThe epoch the proposal is bound to
refbase64urlYesProposal identifier
SHA-256 ProposalRef (RFC 9420 §5.2), 43 chars
typeServerProposalTypeYesProposal type
remove | group_context_extensions
proposalbase64urlYesThe signed proposal
MLSMessage, wire format mls_public_message
reasonRemovalReasonYesServer annotation (not signed)
§13.1; unknown values: treat as lost_access
targetobjectNoThe leaf to remove (server annotation, not signed)
{addr, did, leaf}; required for type remove
evidenceobjectNoEvidence supporting device_revoked, identity_changed, account_downgraded (not signed)
{identityState: JWS} and/or {deviceRevocation: JWS}
reissueOfbase64urlNoref of the proposal this one replaces after an external commit (§13.5)
issuedAttimestampYesIssue time

ServerProposal MLSMessage (server proposal profile) tls-record

PublicMessage with sender {external, 0}, empty authenticated_data, content_type proposal (Remove or GroupContextExtensions), signature by external-sender key over FramedContentTBS without GroupContext, no membership_tag; identified by ProposalRef.

Signed by
hosting server mls-external-sender key
Specification
13 §6.3

SvParticipant tls-record

One sv_participants entry.

Specification
13 §5.1
Fields
NameTypeRequiredMeaning and constraints
addressopaque<V>YesPerson
canonical address UTF-8, 3..320 bytes
ikfopaque<V>YesIdentity key fingerprint
exactly 32 bytes: raw SHA-256 RFC 7638 thumbprint of identity key JWK

SvParticipants tls-record

extension_data of GroupContext extension 0xF5A1 (sv_participants): people and identity-key thumbprints allowed in a secure DM or group DM.

Specification
13 §5.1
Fields
NameTypeRequiredMeaning and constraints
participantsarray<SvParticipant>YesParticipants
1..1,024 entries, sorted by address ascending byte order, unique address; <V> vector

Also described in 00 §2.7, §6 HP-3.

ClientGroupState enum

Specification
13 §16
Values
ValueMeaning
absentNo MLS state
bootstrappingGroupBootstrap in flight
joiningExternal commit in flight
welcomedJoined from Welcome, not caught up; may read, MUST NOT send or show lock
awaiting_readdDMs only after own identity change; not listed with own ikf; sends nothing
memberHolds current epoch; only state that may show closed lock and send
committingPending commit in flight
catching_upProcessing missed commits
deferredHolding a commit for evidence
blockedAfter a positive rejection
removedRemoved for membership reason; won't rejoin
retiredGeneration retired

CommitNeededReason enum

Specification
13 §8.5
Values
ValueMeaning
removalPending removals
key_rotationExternal-sender key rotation
reissueProposals reissued after external commit
group_info_refreshStored GroupInfo stale; any member commit (self-update) replaces it

CredentialRejectedReason (subset named here; owned by 07 §10.6) enum

Specification
13 §6.1.1
Values
ValueMeaning
subject_mismatchA2
device_mismatchA2
state_unavailableA3; only retryable reason, retryAfterMs 30,000
account_insecureA3
generation_mismatchA3
key_mismatchA3
device_not_listedA4
device_revokedA4
not_permittedA5, with data.membershipCode
duplicate_device_leafA6
mixed_identityA6, only if Remove proposals can't be issued

DesignatedCommitterState enum

Specification
13 §13.4
Values
ValueMeaning
idleNo designation running
designatingA candidate has been sent mls.commit_needed with a 3 s timer
waitingNo candidate / 30 s pause

EpochAckStatus enum

Specification
13 §7.8
Values
ValueMeaning
match200: settled reference equals device's pair
pending202: reference provisional; vote recorded
ignored200: ack for epoch lower than last acked

GenerationCase enum

Specification
13 §4.2
Values
ValueMeaning
G-a1:1 DM secure again after insecure (SM-8)
G-bServer lost/rolled back DS state
G-cOperator retires unrepairable group

GroupRetiredReason enum

Specification
13 §8.2
Values
ValueMeaning
context_insecureContext became insecure
context_deletedContext deleted
state_lostServer lost/rolled back DS state
operatorOperator retired group

HandshakeKind enum

Specification
13 §7.6
Values
ValueMeaning
externalExternal commit
memberMember commit

KeyPackageClaimPurpose enum

Specification
13 §9.4
Values
ValueMeaning
dm_createCreating a DM
dm_add_personAdding a person
dm_readdRe-adding a person after a reset
dm_secureA DM or group DM becoming secure

KeyPackageClaimStatus enum

Specification
13 §9.4
Values
ValueMeaning
okKeyPackages returned
not_foundNo such account (or target on another domain in S2S)
not_secureAccount insecure
no_devicesSecure but no device had a KeyPackage
unavailableRefused by target's home server, reason undisclosed
rate_limitedRate limit exceeded
unreachableHome server didn't answer (not in S2S responses)

MlsReportKind enum

Specification
13 §7.10
Values
ValueMeaning
verification_failedPositive rejection
commit_unprocessableCouldn't process sequenced commit
fork_suspectedSealedMessage ekid mismatch
group_info_invalidFetched GroupInfo failed checks
otherServer storage value for unknown kinds

NotMemberReason enum

Specification
13 §18
Values
ValueMeaning
no_leafNo usable leaf; unknown reasons treated as this
removal_pendingNon-entitled removal pending

PolicyViolationRule enum

Specification
13 §18, §12
Values
ValueMeaning
ciphersuite
wire_format
authenticated_data
credential_type
credential_changed
capabilities
extensions
external_sender
duplicate_leaf
welcome
bootstrap
sv_participants
E1External-commit rule (§12.1; E6 DMs only, §12.2)
E2External-commit rule (§12.1; E6 DMs only, §12.2)
E3External-commit rule (§12.1; E6 DMs only, §12.2)
E4External-commit rule (§12.1; E6 DMs only, §12.2)
E5External-commit rule (§12.1; E6 DMs only, §12.2)
E6External-commit rule (§12.1; E6 DMs only, §12.2)
M1Member-commit rule (§12.1; M1, M3, M4 also apply in DMs)
M2Member-commit rule (§12.1; M1, M3, M4 also apply in DMs)
M3Member-commit rule (§12.1; M1, M3, M4 also apply in DMs)
M4Member-commit rule (§12.1; M1, M3, M4 also apply in DMs)
M5Member-commit rule (§12.1; M1, M3, M4 also apply in DMs)
D1DM member-commit rule (§12.2)
D2DM member-commit rule (§12.2)
D3DM member-commit rule (§12.2)
D4DM member-commit rule (§12.2)
D5DM member-commit rule (§12.2)
D6DM member-commit rule (§12.2)

RemovalReason enum

Specification
13 §13.1
Values
ValueMeaning
kickedMember kicked (10)
bannedMember banned (10)
leftMember left channel/community (09)
lost_accessLost view_channel, needs_encryption or membership ended
device_revokedDevice revoked
identity_changedIdentity reset (higher igen, secure)
account_downgradedidentity.changed with sec insecure
account_deletedAccount deleted or new incarnation
participant_leftLeft a group DM
participant_removedRemoved from group DM
evictedInactivity or room needed
stale_leafLeaf invalid on re-check or duplicate leaf
federation_blockedHosting server blocked the account's domain
key_rotationReason of a group_context_extensions server proposal

ResyncRequiredReason enum

Specification
13 §8.6
Values
ValueMeaning
forkDevice's vote lost at settlement
commit_unprocessable§15.4
duplicate_leafServer found two leaves for this device
state_lostServer state lost

ServerGroupState enum

Specification
13 §4.3
Values
ValueMeaning
noneSecure, no group for current generation yet
activeGroup exists, no pending removal
frozenAt least one pending Remove proposal; content refused
retiredGeneration closed

ServerProposalType enum

Specification
13 §7.7
Values
ValueMeaning
removeRemove proposal
group_context_extensionsGroupContextExtensions (external_senders rotation only)

VerificationFailedReason enum

Specification
13 §6.4, §18
Values
ValueMeaning
malformedParse failure
signatureSignature failure
group_infoGroupInfo check V14
treeRoster/tree hash checks V15/V16

14 Sealed messages, history visibility and sharing

ArchiveHistoryKeyRecordFill other

How this document fills 08's archive record (08 §9.1), encrypted under the current vault key generation: host, ctx, groupId, gen, epoch, and keys entries {ekid, key = K_hist(e), source = mls, confirmed = true, learnedAt}. v1 writers write no other source value.

Specification
14 §12.1
Fields
NameTypeRequiredMeaning and constraints
hoststringYesHosting server canonical domain.
ctxstringYesContext reference.
groupIdstringYesMLS group_id (names the generation).
genintegerYesGeneration.
last field of groupId
epochintegerYesEpoch.
keysarray<{ekid, key, source, confirmed, learnedAt}>YesKey entries.
one entry per distinct key known for the epoch; source mls; confirmed true

Bundle binary-frame

Plaintext of a HistoryShare's ct: u8(1) || u32(count) || count × (mid16(mid) || K_msg); 48 bytes per item, mid16 strictly ascending, no duplicates.

Specification
14 §7.5
Fields
NameTypeRequiredMeaning and constraints
versionu8YesBundle version.
1
countu32YesNumber of items.
equals header count
itemscount × (16-byte mid16 || 32-byte K_msg)YesThe shared message keys.
sorted by mid16 ascending, no duplicates; each mid a valid UUIDv7

CredentialLookupRequest object

Body of POST …/history/credentials/lookup.

Specification
14 §8.5
Fields
NameTypeRequiredMeaning and constraints
devicesarray<{addr, did}>YesPairs to look up.
1 to 100 entries

CredentialLookupResponse object

Response of POST …/history/credentials/lookup.

Specification
14 §8.5
Fields
NameTypeRequiredMeaning and constraints
itemsarray<CredentialRecord>YesRecords found.
missingarray<{addr, did}>YesPairs with no record.

CredentialRecord object

Hosting server's stored copy of the device credential of a device that sent sealed content or created a HistoryShare in a context; one per distinct (addr, did, dkf), never overwritten.

Specification
14 §5.6
Fields
NameTypeRequiredMeaning and constraints
addrstringYesThe sender's canonical address.
canonical address
didbase64urlYesThe device ID.
22 characters
dkfbase64urlYesThumbprint of the DSK.
RFC 7638 thumbprint
idcjwsYesThe IdentityCertificate JWS from the device's sv_device credential (07).
devcertjwsYesThe DeviceCertificate JWS from the same credential.
firstSeenAttimestampYesTime of the first accepted SealedMessage or HistoryShare from this device.
lastSeenAttimestampYesTime of the latest accepted SealedMessage or HistoryShare from this device.
statusCredentialRecordStatusYesactive while the device has a leaf in the current group; otherwise removed.
active or removed; unknown treated as removed

HistoryShare object

A member's deliberate, signed share of the message keys (K_msg) of chosen earlier sealed items with one other current member, for one seq range. Posted by the sharer; fetched by the recipient's devices with server-added sharer, createdAt and seq.

Signed by
sharing device's DSK (Ed25519, label 'history-share')
Specification
14 §7.4
Fields
NameTypeRequiredMeaning and constraints
vintegerYesFormat version.
1; receivers reject any other value
ctxstringYesContext reference.
00 §7.6 form; MUST equal the path's context
shareIduuidv7YesShare ID generated by the sharing client.
lowercase hyphenated UUIDv7; unique within the context
recipientstringYesCanonical address of the recipient account.
canonical (01, D-032)
didbase64urlYesDevice ID of the sharing device.
22 characters; MUST equal the session's device
fromSeqintegerYesFirst seq of the range.
1 to 2^53 − 1
toSeqintegerYesLast seq of the range, inclusive.
fromSeq to 2^53 − 1
countintegerYesNumber of items in the bundle.
1 to 5,000
noncebase64urlYesAES-GCM nonce of the bundle.
12 bytes: 16 characters
ctbase64urlYesEncrypted Bundle plus 16-byte tag.
decoded length exactly 5 + 48 × count + 16 bytes
keysarray<HistoryShareKeyWrap>YesKey wraps of K_share, one per wrapped recipient device.
1 to 100 entries, distinct dids
sigbase64urlYesLabelled signature history-share by the sharing device's DSK.
64 bytes: 86 characters
sharerstringNoCanonical address of the sharing account.
server-added on return only; canonical address from the posting session
createdAttimestampNoWhen the server accepted it.
server-added on return only
seqintegerNoThe seq of its history.shared event.
server-added on return only

Also described in 00 §6 HP-4.

HistoryShareCreated object

201 response to POST …/history/shares.

Specification
14 §8.3
Fields
NameTypeRequiredMeaning and constraints
shareIduuidv7YesThe share.
seqintegerYesseq of the history.shared event.
createdAttimestampYesAcceptance time.

HistorySharedEventData object

The d member of the history.shared event.

Specification
14 §9.1
Fields
NameTypeRequiredMeaning and constraints
shareIduuidv7YesThe share.
sharerstringYesSharing account.
recipientstringYesRecipient account.
fromSeqintegerYesRange start.
toSeqintegerYesRange end.
countintegerYesNumber of shared items.

HistoryShareDiagnosticData object

data of the history_share diagnostic report when a received HistoryShare or one of its entries failed a check.

Specification
14 §9.4
Fields
NameTypeRequiredMeaning and constraints
shareIduuidv7YesThe share.
sharerstringYesSharing account.
didbase64urlYesSharing device.
stepHistoryShareDiagnosticStepYesStep that failed.
unknown values stored as other
miduuidv7NoThe failing item.
present only for step item

HistoryShareHpkeInfo binary-frame

HPKE info for each key wrap: "sv1 history-share" || 0x00 || mid16(shareId) || did16(d); 50 bytes; aad empty; HPKE-SealBase to dbk(d) (04 §9.8).

Specification
14 §7.5

HistoryShareKeyWrap object

One entry of HistoryShare.keys: K_share wrapped with HPKE-SealBase to one recipient device's box key (dbk).

Specification
14 §7.4, §7.5
Fields
NameTypeRequiredMeaning and constraints
didbase64urlYesRecipient device ID.
22 characters
encbase64urlYesHPKE encapsulated key.
43 characters (32 bytes)
ctbase64urlYesHPKE ciphertext of K_share.
64 characters (48 bytes)

HistoryState object

Response of GET /v1/contexts/{ctx}/history: the caller's visibility in a secure context.

Specification
14 §8.2
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext reference.
visibleFromSeqintegerYesseq at which current membership began.
earlierWithheldbooleanYesWhether earlier content items are withheld (grants aside).
grantsarray<VisibilityGrantSummary>YesThe caller's VisibilityGrants.
oldest first

KeyStoreEntry other

A client's local, protected history-key table entry, keyed by epoch reference (host, ctx, gen, epoch).

Specification
14 §3.7
Fields
NameTypeRequiredMeaning and constraints
hoststringYesCanonical domain of the hosting server.
ctxstringYesContext reference.
genintegerYesGeneration.
epochintegerYesEpoch number.
keybytesYesK_hist.
32 bytes
ekidbytesYesekid of key.
8 bytes
sourceKeyStoreSourceYesmls (computed in the group) or archive (from the user's key archive).
mls or archive
confirmedbooleanYesTrue when the key came from MLS or has decrypted at least one verified SealedMessage of its epoch; an archive key starts with its entry's confirmed.

SealedHeader binary-frame

Binary encoding of a SealedMessage's header fields; the AEAD associated data exactly, and the start of the signed content. Binds the MLS group_id and sender canonical address, which are not JSON members.

Specification
14 §4.4
Fields
NameTypeRequiredMeaning and constraints
versionu8YesHeader version.
1; equals v
group_idV16(UTF-8)YesMLS group_id computed from the hosting server's canonical domain, ctx and gen.
"sv1:" host ":" ctx ":" gen (00 §7.6)
senderV16(UTF-8)YesCanonical address of the sending account.
canonical address; never an alias (D-032)
did1616 bytesYesbase64url-decoded device ID.
mid1616 bytesYesBinary message ID.
epochu64YesEpoch.
ekid8 bytesYesEpoch key identifier.
kindV8(ASCII)YesKind.
ref16V8YesTarget reference.
empty, or mid16(ref) (16 bytes)
nonce12 bytesYesAES-GCM nonce.
kc16 bytesYesKey commitment.

SealedMessage object

The one wire form of every piece of secure application content (messages, edits, author deletes, reactions). Carried in the sealed member of 11's posting body and message object, and in secure dm.request events (12). Stored verbatim by the server.

Signed by
sending device's DSK (Ed25519, label 'sealed')
Specification
14 §4.1
Fields
NameTypeRequiredMeaning and constraints
vintegerYesFormat version.
1; any other value rejected with sealed.invalid
ctxstringYesContext reference.
00 §7.6 form, colon unencoded; MUST equal the context the carrier names
genintegerYesMLS group generation.
1 to 2,147,483,647 (13 §4.1)
miduuidv7YesMessage ID, generated by the sending client.
lowercase hyphenated UUIDv7 (ABNF mid, §4.2); MUST equal the carrier's mid
epochintegerYesEpoch whose K_hist seals this message.
0 to 2^53 − 1
ekidbase64urlYesB64U(ekid(epoch)).
exactly 11 characters (8 bytes); canonical (zero trailing bits)
kindSealedKindYesWhat the content is (§4.3).
1–32 characters from [a-z_]
refuuidv7NoThe mid of the entry this one acts on.
required for edit, delete and reaction; MUST be absent for message; in a posting body MUST equal the cleartext target (11 §4.2)
didbase64urlYesDevice ID of the sending device.
22 characters (16 bytes)
noncebase64urlYesAES-GCM nonce.
B64U of 12 random bytes: 16 characters
kcbase64urlYesKey commitment (§3.4).
B64U of 16 bytes: 22 characters
ctbase64urlYesAES-256-GCM ciphertext followed by its 16-byte tag.
decoded length at least 16 bytes and at most roundUp256(maxMessageBytes) + 16
sigbase64urlYesLabelled signature 'sealed' by the sender's DSK (§4.6).
B64U of 64 bytes: 86 characters

Also described in 00 §6 HP-4, §7.4.

SealedPlaintext other

The content JSON of 11 (UTF-8, I-JSON), at most maxMessageBytes, followed by 0x20 spaces padding to the smallest multiple of 256 bytes at least the content length. Receivers parse it as one JSON object followed only by white space.

Specification
14 §4.5

SealedSigContent binary-frame

Signed content of a SealedMessage: SealedHeader || u32(len(ct)) || ct (decoded ct including tag). sig = Ed25519-Sign(DSK, "sv1 sig" || 0x00 || "sealed" || 0x00 || SealedSigContent).

Signed by
DSK
Specification
14 §4.6

SealedTombstoneFields other

What the server keeps for a sealed target whose ct it deleted (author delete, or root/earlier edit superseded by an edit): mid, sender, did, gen, epoch and sigHash = SHA-256(decoded sig).

Specification
14 §5.5, §5.7

SealedVerifyDiagnosticData object

data of the sealed_verify diagnostic report (sent via POST /v1/diagnostics to the hosting server) when an outcome is invalid or fork_evidence, or an ekid mismatch was handled.

Specification
14 §9.4
Fields
NameTypeRequiredMeaning and constraints
genintegerYesGeneration.
epochintegerYesEpoch.
miduuidv7YesMessage ID.
senderstringYesSender address.
didbase64urlYesSender device.
stepSealedVerifyStepYesStep that failed.
unknown values stored as other
outcomestringYesOutcome.
invalid or fork_evidence
ekidbase64urlNoThe message's ekid.
only for step ekid
ownEkidbase64urlNoThe client's own ekid.
only for step ekid

SharedKeysRecordPartition other

08 shared_keys record (08 §9.5) usage: one record per (host, ctx, shareId, part); part p holds the verified keys at bundle positions 32p to 32p+31 in mid16 order, and names the sharer. A part whose keys all failed isn't written.

Specification
14 §12.7

SharedMessageKeyEntry other

Key-store entry for a shared message key accepted from a HistoryShare: one per (host, ctx, mid). Opens exactly one SealedMessage; never enters the notification key subset.

Specification
14 §3.7
Fields
NameTypeRequiredMeaning and constraints
hoststringYesHosting server canonical domain.
ctxstringYesContext reference.
miduuidv7YesThe message the key opens.
K_msgbytesYesThe message key.
32 bytes
shareIduuidv7YesThe share it came from.
sharerstringYesThe sharer's canonical address.
canonical address

ShareHeader binary-frame

AEAD associated data of a HistoryShare bundle and the start of its signed content.

Specification
14 §7.5
Fields
NameTypeRequiredMeaning and constraints
versionu8YesHeader version.
1; equals v
hostV16(UTF-8)YesCanonical domain of the hosting server.
ctxV16(UTF-8)YesContext reference.
shareId16 bytesYesShare ID.
mid16(shareId)
sharerV16(UTF-8)YesSharing account.
canonical address (D-032)
did16 bytesYesSharing device.
did16
recipientV16(UTF-8)YesRecipient account.
canonical address
fromSequ64YesRange start.
toSequ64YesRange end.
countu32YesItem count.
nonce12 bytesYesBundle nonce.

ShareSigContent binary-frame

ShareHeader || u32(len(ct)) || ct; sig = Ed25519-Sign(DSK, "sv1 sig" || 0x00 || "history-share" || 0x00 || ShareSigContent).

Signed by
DSK
Specification
14 §7.5

VisibilityGrant other

Server-side record that lets one recipient account be served the sealed items of one HistoryShare's range below its visibleFromSeq. Exactly one per accepted share; ends with the recipient's current membership; can't be withdrawn by the sharer.

Specification
14 §10.3
Fields
NameTypeRequiredMeaning and constraints
accountstringYesRecipient account.
canonical address
ctxstringYesThe context.
shareIduuidv7YesThe HistoryShare that created it.
fromSeqintegerYesRange start, inclusive.
toSeqintegerYesRange end, inclusive.
sharerstringYesSharing account.
canonical address
createdAttimestampYesWhen the share was accepted.

Also described in 00 §2.7, §6 HP-4.

VisibilityGrantSummary object

Element of HistoryState.grants.

Specification
14 §8.2
Fields
NameTypeRequiredMeaning and constraints
shareIduuidv7YesThe share that created the grant.
sharerstringYesSharing account.
canonical address
fromSeqintegerYesRange start.
toSeqintegerYesRange end, inclusive.
createdAttimestampYesWhen the share was accepted.

CredentialRecordStatus enum

Specification
14 §5.6
Values
ValueMeaning
activeDevice has a leaf in the current group.
removedOtherwise; unknown values are treated as removed.

HistoryDisabledReason enum

Specification
14 §15
Values
ValueMeaning
insecureContext is insecure (default for unknown values).

HistoryMarker enum

Specification
14 §7.9
Values
ValueMeaning
K6Earlier messages are end-to-end encrypted and aren't available to people who join later; at the join point.
K4Loading earlier messages…; while archive download or share processing is in progress.
K7<Name> shared earlier messages with you; recipient, above first item of the range.
K8<Name> shared earlier messages with <Name2>; every member other than the recipient, at the history.shared seq.

HistoryShareDiagnosticStep enum

Specification
14 §9.4
Values
ValueMeaning
unwrapHPKE open of the key wrap failed.
signatureSharer signature failed.
decryptBundle decryption failed.
bundleBundle structure check failed.
itemOne entry failed verification (mid present).

HistoryShareForbiddenReason enum

Specification
14 §15
Values
ValueMeaning
permissionCaller lacks share_history (default for unknown values).
botCaller is a bot account.
selfRecipient is the caller.
recipient_not_memberRecipient isn't a current member.
recipient_not_in_groupA keys entry names a device without a leaf of the recipient in the current epoch.

HistoryShareRangeInvalidReason enum

Specification
14 §15
Values
ValueMeaning
beyond_headtoSeq not below the share event's seq.
countcount exceeds sealed items stored in the range.
not_visibleRange includes items the caller isn't served (default for unknown values).

KeyStoreSource enum

Specification
14 §3.7
Values
ValueMeaning
mlsComputed in the MLS group; always wins over other sources.
archiveRead from the user's key archive.

OpenOutcome enum

Specification
14 §6.4
Values
ValueMeaning
okVerified and decrypted; show normally.
pending_keyNo key yet for that epoch or message.
pending_senderKey present, sender credential not yet obtainable.
unavailableNo key can be obtained.
invalidA format, credential, signature, kc, decryption or content check failed, or the sender is forked.
fork_evidenceThis device's own MLS-derived key differs from the reference ekid.

RecipientShareState enum

Specification
14 §7.10
Values
ValueMeaning
openingShare fetched; unwrapping, verifying signature and bundle.
verifyingBundle opened; fetching and verifying items.
doneFinished, dropped, or waiting on shared_keys records.

ReportVerificationResult enum

Specification
14 §13.5
Values
ValueMeaning
verifiedThe sender's device produced exactly this content in this context, epoch and group.
plaintextNever sealed (insecure context or pre-upgrade); stored copy shown, labelled.
not_foundNo stored item, or no acceptable copy.
credential_invalidSender's credential record failed the local checks.
bad_signatureSignature doesn't verify.
bad_keyRevealed key doesn't match kc.
decrypt_failedAEAD failed.
bad_contentContent invalid or inconsistent with kind/ref, or attachment size/sha256 mismatch.
not_referencedAttachment isn't referenced with that key by a verified message of the report.

SealedKind enum

Specification
14 §4.3
Values
ValueMeaning
messageA new root message (replies and attachment references included); ref absent.
editReplacement content for the root message named by ref; ref must name the posting account's own undeleted root message.
reactionAdds one reaction to the root message named by ref (sealed or pre-upgrade plaintext); never removes one.
deleteDeletes the author's own root message or removes the author's own reaction; server tombstones the target.

Also described in 00 §5.4, §6 HP-4.

SealedRefInvalidReason enum

Specification
14 §15
Values
ValueMeaning
missingref missing where required.
forbiddenref present where forbidden.
not_foundref unknown.
deletedTarget deleted.
not_authorTarget is another account's entry for edit or delete.

SealedVerifyDiagnosticOutcome enum

Specification
14 §9.4
Values
ValueMeaning
invalidOutcome invalid.
fork_evidenceOutcome fork_evidence.

SealedVerifyStep enum

Specification
14 §9.4
Values
ValueMeaning
formatFormat/grammar check failed.
contextS.ctx mismatch.
credentialNo acceptable sender credential.
signatureSignature failed.
ekidekid mismatch handled.
kcKey commitment mismatch.
decryptAEAD decryption failed.
contentContent check failed.
timeoutA pending_sender that reached 24 h.

15 Calls: control, leases, routing and continuity

Call object

A call in a call-capable context.

Specification
15 §2.5.1
Fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesAssigned when the call starts.
never reused
ctxstringYesContext reference.
ch:…, dm:… or gdm:…
securityCallSecurityYesContext's mode when the call started; fixed for the call.
insecure | secure; unknown → treat as secure and refuse to send media; never trusted for mode (§2.1 item 4)
startedAttimestampYesStart time.
participantsarray<Participant>YesEvery seat.
ascending pid order
videoRouteVideoRouteYesVideo route for the call.
dc | sfu; unknown → dc
mediaEpochinteger or nullYesMLS epoch the call most recently switched to.
null in insecure calls; only increases
profilesarray<string>YesMedia profiles offered.
always voice-dc/1 and video-dc/1; plus sfu-rtp/1 if SFU-capable
maxParticipantsintegerYesEffective maxCallParticipants.
ringingRing or nullYesPending ring in a DM call.
always null in channels

CallAlreadyInCallData object

data of call.already_in_call.

Specification
15 §16.1
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesWhere the existing participation is.
callIduuidv7YesThe call.
sameDevicebooleanYesExisting participation is on this device.
sameCallbooleanYesExisting participation is in this same call.

CallFailureData object

data of a call_failure report.

Specification
15 §14.3
Fields
NameTypeRequiredMeaning and constraints
phasestringYesWhere it failed.
join | relay_connect | in_call | rejoin
codestring or nullYesLast error code seen.
last error code seen, or null
securitystringYesCall's mode.
the call's mode
outageMsintegerYesOutage duration.
rejoinAttemptsintegerYesAttempts.
iceStatestringYesICE state.
value set not stated in §14.3
dtlsStatestringYesDTLS state.
value set not stated in §14.3
samplesarray<Sample>YesSamples.
up to 30

CallSummaryData object

data of a call_summary report.

Specification
15 §14.3
Fields
NameTypeRequiredMeaning and constraints
durationMsintegerYesCall duration.
securitystringYesMode.
routesUsedarray<Route>YesRoutes the device's media used.
relay, and sfu when the device's video went through the SFU
unexpectedDropsintegerYesDrops.
samplesarray<Sample>YesSamples.

ControlMessage object

One sv-control message (UTF-8 JSON text).

Specification
15 §6.5
Fields
NameTypeRequiredMeaning and constraints
tstringYesMessage type.
msg-type = area "." name; area 1*(a-z); name (a-z) *(a-z / DIGIT / "_"); unknown ignored
fromintegerNoSender pid.
a client's from is ignored; the relay sets it to the session's pid on every message it forwards; absent on relay-originated messages
tointegerNoUnicast target pid.
dobjectYesPayload defined by the owner of t.

DataChannelLayout other

Three negotiated data channels on every relay connection.

Specification
15 §6.4
Fields
NameTypeRequiredMeaning and constraints
sv-controlid 0YesControl messages.
sv-control/1; ordered; reliable; text UTF-8 JSON
sv-audioid 1YesAudio frames of sources 0 and 2.
voice-dc/1; unordered; maxRetransmits: 0; binary
sv-videoid 2YesVideo fragments of sources 1 and 3.
video-dc/1; unordered; maxPacketLifeTime: 120 ms; binary

DiagnosticReport object

Body of POST /v1/diagnostics; ≤ 64 KiB.

Specification
15 §14.3
Fields
NameTypeRequiredMeaning and constraints
reportIduuidv7YesIdempotency key for the report.
chosen by the client
kindstringYesReport kind (§14.4).
1–64 chars of lowercase letters, digits, _ and .; unknown kinds accepted
clientstringYesProduct and version.
as in session.hello (03)
platformDiagnosticPlatformYesPlatform.
desktop | web | ios | android | bot
createdAttimestampYesWhen the report was made.
ctxstringNoThe context.
call kinds
callIduuidv7NoThe call.
call kinds
dataobjectYesKind-specific data.
CallFailureData or CallSummaryData for call kinds

JoinRequest object

Body of POST …/call/join.

Specification
15 §3.3.1
Fields
NameTypeRequiredMeaning and constraints
featuresarray<string>YesMedia profiles this device supports in this call.
subset of the session features; voice-dc/1 MUST be present; may include video-dc/1, sfu-rtp/1; unknown values ignored
createbooleanNoStart a call if none is active; when false and no call is active the server answers 404 call.not_active.
default true
takeOverbooleanNoResolve a one-call conflict (§2.3) by ending the user's existing participation on this server (§11).
default false
rejoinTokenstringNoToken of a participation of this device, to restore its seat (§10.2).
rejoin-token = 1*128( ALPHA / DIGIT / "-" / "_" ); ≥128 bits entropy
plannedbooleanNoThis rejoin is a planned migration (§10.8).
default false; only with rejoinToken
selfMutedbooleanNoInitial self-mute state.
default false
selfDeafenedbooleanNoInitial self-deafen state.
default false
ringbooleanNoWhether starting a call rings the other participants (§13).
default true; DM contexts only; ignored when the call already exists and in channels; every automatic join MUST send false
videobooleanNoThe caller starts with webcam on; copied into the ring.
default false

JoinResponse object

200 body of POST …/call/join.

Specification
15 §3.3.3
Fields
NameTypeRequiredMeaning and constraints
callCallYesThe call after admission.
pidintegerYesThis participation's index.
rejoinTokenstringYesFresh rejoin token (§10.2).
seatRestoredbooleanYestrue when a rejoin kept the earlier seat and pid.
leaseVoiceLeaseYesThis participant's rights (§4.1).
tickLeaseSnapshotYesThe snapshot that admitted this pid; the client's first lease tick.
receipt time for coverage = when the client first sent a join with this Idempotency-Key
relayRelayInfoYesRelay URL, RelayTicket and its expiry.
{url, ticket, ticketExpiresAt}

LeaseSnapshot object

Room-wide lease statement; delivered as call.tick. Complete, not a delta; no timestamp.

Specification
15 §4.2
Fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
seqintegerYesSequence.
starts at 1; strictly increasing per call; MAY skip
validMsintegerYesValidity.
always 3000 in v1; receivers MUST use 3,000 ms regardless
audioarray<integer>Yespids allowed to send sources 0 and 2.
ascending, no duplicates, ⊆ listeners
videoarray<integer>Yespids allowed to send sources 1 and 3.
ascending, no duplicates, ⊆ listeners
listenersarray<integer>Yespids allowed to receive.
ascending, no duplicates; every seat
epochintegerNoCurrent mediaEpoch.
secure calls only; absent in insecure calls

Also described in 00 §6 HP-15.

Mute object

A Mute for everyone, stored per (channel, account); never names the moderator.

Specification
15 §3.6
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesThe voice channel.
addrstringYesMuted account.
reasonstring or nullNoReason.
only to holders of mute_members, and to the muted account when showReason is true
showReasonbooleanYesWhether the muted account sees reason.
reportIdstring or nullNoLinked report.
only to holders of mute_members
createdAttimestampYesWhen applied or last replaced.

Participant object

One seat (participation of one device).

Specification
15 §2.5.2
Fields
NameTypeRequiredMeaning and constraints
pidintegerYesParticipant index.
0–65535, unique within the call; lowest free index not released in the last 60 s
addrstringYesCanonical address.
namestringYesDisplay name.
MUST be checked against addr per 01 (D-031) before display
didstringYesDevice ID.
kindstringYesParticipant kind.
user | bot; unknown → user
stateSeatStateYesSeat state.
connecting | connected | reconnecting; unknown → connecting
joinedAttimestampYesAdmission time.
kept when a seat is restored
selfMutedbooleanYesSelf-muted microphone.
advisory
selfDeafenedbooleanYesSelf-deafened.
advisory
mutedForEveryonebooleanYesModerator mute.
true while a Mute for everyone or ServerMute applies
sourcesobjectYesWhat the participant says it sends.
{screen: bool, screenAudio: bool, webcam: bool}; informative
leafIndexinteger or nullYesMLS leaf index of the device.
null in insecure calls; a hint only

RelayConnectRequest object

Body of POST {relayUrl}/connect.

Specification
15 §6.2
Fields
NameTypeRequiredMeaning and constraints
offerstringYesSDP offer.

RelayConnectResponse object

201 body of POST {relayUrl}/connect.

Specification
15 §6.2
Fields
NameTypeRequiredMeaning and constraints
answerstringYesSDP answer with all relay candidates.
relaySessionIdstringYesOpaque ID.
≤ 64 chars

RelayInfo object

The relay member of a join response.

Specification
15 §3.3.3
Fields
NameTypeRequiredMeaning and constraints
urlstringYesRelay URL; takes precedence over ServerMetadata endpoints.relayUrl.
relay-url: absolute HTTPS base-url, no query/fragment/trailing slash
ticketRelayTicketYesRelayTicket.
compact JWS
ticketExpiresAttimestampYesTicket expiry.

RelayTicket jws

Authorises exactly one relay connection for one participation; compact JWS, typ sv-relay+jwt, ≤ 8,192 bytes; header exactly {alg: EdDSA, typ, kid}.

Signed by
hosting server key with purpose sign (02), kid e.g. b.com#2026-12a, alg EdDSA
Specification
15 §5.1
Fields
NameTypeRequiredMeaning and constraints
issstringYesHosting server's canonical domain.
audstringYesRelay URL.
exactly relay.url from the join response
substringYesParticipant canonical address.
didstringYesDevice ID.
ctxstringYesContext reference.
cidstringYescallId.
pidintegerYesParticipant index.
secstringYesCall security.
insecure | secure; never trusted for mode
profarray<string>YesProfiles the session may use on the relay.
subset of voice-dc/1, video-dc/1
iatintegerYesIssue time.
NumericDate
expintegerYesExpiry.
≤ iat + 60
jtibase64urlYesTicket ID.
≥ 128 random bits; single use

Also described in 00 §7.13, §8 F2.

Ring object

Pending ring in a DM call.

Specification
15 §2.5.3
Fields
NameTypeRequiredMeaning and constraints
bystringYesCanonical address of the account that started the call's first ring.
targetsarray<RingTarget>YesAccounts still being rung.
videobooleanYesCaller started with webcam on.
expiresAttimestampYesLatest expiresAt among targets.

RingTarget object

One account being rung.

Specification
15 §2.5.3
Fields
NameTypeRequiredMeaning and constraints
addrstringYesCanonical address being rung.
bystringYesWho started this target's current ring (caller or re-ringer).
expiresAttimestampYesWhen this target's ring times out.
45 s after the ring started

Sample object

Diagnostic counter sample every 10 s and at call close; last 30 kept.

Specification
15 §14.1
Fields
NameTypeRequiredMeaning and constraints
attimestampYesSample time.
rttMsintegerYesRound-trip time on the relay connection.
jitterMsintegerYesInterarrival jitter.
lossPermilleintegerYesReceived audio frames lost per thousand.
audioFramesSentintegerYesIn interval.
audioFramesReceivedintegerYesIn interval.
concealedMsintegerYesAudio filled by FEC or concealment.
jitterBufferMsintegerYesJitter-buffer depth.
maxTickAgeMsintegerYesOldest the newest tick got.
videoKbpsSentintegerYesVideo bitrate.
videoKbpsReceivedintegerYesVideo bitrate.
framesHeldintegerYesSum of heldEntries in 17's VideoStats.
keyframeRequestsintegerYesKeyframe requests sent.
undecryptableFramesintegerYesUndecryptable frames.
secure calls
attestationFailuresintegerYesMediaAttestation failures.
secure calls
candidateTypesarray<string>YesICE candidate types of the relay connection's selected candidate pair.
host | prflx; never addresses
audioobjectNoOptional audio stats.
AudioStats (16 §13)
videoobjectNoOptional video stats.
VideoStats (17 §14)

SfuPublish object

Entry of a publish list.

Specification
15 §8.2
Fields
NameTypeRequiredMeaning and constraints
midstringYesTransceiver mid in the offer.
sourceIdintegerYesSource.
1, 2 or 3
ridsarray<string>NoRID list.
simulcast (17)

SfuWant object

Entry of a subscriptions want list.

Specification
15 §8.2
Fields
NameTypeRequiredMeaning and constraints
pidintegerYesPublisher.
sourceIdintegerYesSource.
maxSpatialLayerintegerNoLayer cap.
maxTemporalLayerintegerNoLayer cap.

Track object

One transceiver of an SFU session.

Specification
15 §8.2
Fields
NameTypeRequiredMeaning and constraints
midstringYesTransceiver mid.
directionstringYesPublished or subscribed.
send | recv
pidintegerYesPublishing participant.
sourceIdintegerYesSource.
1, 2 or 3
statestringYesPaused by lease enforcement or layer choice.
active | paused; unknown → paused

VoiceLease object

A participant's own view of its lease rights.

Specification
15 §4.1
Fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesThe call.
pidintegerYesThe participant.
listenbooleanYesIn listeners.
always true while the seat exists
audiobooleanYesIn audio.
videobooleanYesIn video.
audioBlockedByAudioBlockedBy or nullYesWhy audio is false.
no_permission | muted_for_everyone | server_muted | timed_out | other; null when audio true; unknown → other
videoBlockedByVideoBlockedBy or nullYesWhy video is false.
no_permission | timed_out | other; null when video true

AudioBlockedBy enum

Specification
15 §4.1
Values
ValueMeaning
no_permissionLacks speak_and_share
muted_for_everyoneMute for everyone
server_mutedServerMute (10 §8.6)
timed_outTimeout
otherOther / unknown

BlockedByPrecedence enum

Specification
15 §4.1
Values
ValueMeaning
timed_out1st
no_permission2nd
muted_for_everyone3rd
server_muted4th

CallEndReason enum

Specification
15 §2.4
Values
ValueMeaning
emptyNo seat left
completedDM call fell to seats of one account after ≥2 accounts, no pending ring
unansweredDM ring(s) timed out/cancelled, or ringless DM call alone for 60 s
declinedEvery ring target declined
security_upgradedContext became secure (planned migration)
security_downgraded1:1 DM became insecure (terminal)
group_restartedMLS group generation changed (planned migration)
channel_deletedChannel deleted
context_closedDM closed or context stopped accepting calls; unknown reasons treated like this
server_restartCall control lost the call's state (unexpected drop; fresh join)

CallFailurePhase enum

Specification
15 §14.3
Values
ValueMeaning
join
relay_connect
in_call
rejoin

CallSecurity enum

Specification
15 §2.5.1
Values
ValueMeaning
insecureInsecure call
secureSecure call; unknown values treated as secure

Also described in 21 §6.4.3.

ClientRejoinState enum

Specification
15 §10.4
Values
ValueMeaning
in_callNormal
rejoiningAttempt in flight
restoringJoin answered; connecting relay
waitingWaiting for next scheduled attempt
endedCall screen closed

DiagnosticPlatform enum

Specification
15 §14.3
Values
ValueMeaning
desktop
web
ios
android
bot

DiagnosticReportKind enum

Specification
15 §14.4
Values
ValueMeaning
call_failure15, to hosting server
call_summary15, to hosting server
identity_check07
media_attestation18
sealed_verify14
pin_conflict02 §10.6
transport03
vault_integrity08, home server
key_storage08, home server
security_downgrade_seen09

DiagnosticsSetting enum

Specification
15 §14.2
Values
ValueMeaning
offNothing uploaded
failuresDefault (D-089): call_failure reports only
fullAlso call_summary at each call close

MediaFeedbackKind enum

Specification
15 §16.2
Values
ValueMeaning
audio_loss16 §4.7
keyframe_request17, client
video_pref17, client
video_report17, client
video_viewer_state17, relay-originated
video_audience17, relay-originated
video_upload_pressure17, relay-originated

MediaProfile enum

Specification
15 §2.5.1, §3.3.1
Values
ValueMeaning
voice-dc/1Audio frames on sv-audio (16); MUST be in join features
video-dc/1Video fragments on sv-video (17)
sfu-rtp/1RTP through the SFU (17)

Also described in 00 §2.8.

MigrateReason enum

Specification
15 §15
Values
ValueMeaning
drainRelay drained (default for unknown)
rebalanceLoad rebalance

RelayClosingReason enum

Specification
15 §6.6
Values
ValueMeaning
leftTerminal
removedTerminal
revokedTerminal
movedTerminal; call moved to other device
switchedTerminal
call_endedTerminal; call ended for a reason other than security_upgraded/group_restarted
replacedNewer session for same pid; none if client opened it, else unexpected drop
drainRelay leaving service: planned migration
call_restartedsecurity_upgraded or group_restarted: planned migration, run §12.1 steps 1-6 at once
timeoutUnexpected drop
overloadedUnexpected drop
session_expiredUnexpected drop: renew session then rejoin with token

RingEndReason enum

Specification
15 §13.1, §15
Values
ValueMeaning
answeredTarget joined from any device
declinedTarget declined
timeout45 s elapsed
cancelledCaller left or call ended; default for unknown

Also described in 19 §5.2, §8.1.

Route enum

Values
ValueMeaning
relayThrough the hosting server's relay (voice-dc/1, video-dc/1); every source's default
sfuThrough the hosting server's SFU (sfu-rtp/1); video and the source 2 that accompanies screen video, while videoRoute is sfu

SeatRemovalReason enum

Specification
15 §2.6, §15
Values
ValueMeaning
leftLeave (default for unknown)
timeoutconnecting 20 s or reconnecting 30 s
removedKick, ban, DM removal, view_channel loss, needs_encryption, account deletion
revokedDevice revocation, identity change, leaf loss
session_expiredSession at hosting server ended without revocation
movedMove voice here to another device
switchedSame device switched to another call
call_endedCall ended

SeatState enum

Specification
15 §2.6
Values
ValueMeaning
connectingAdmitted, relay session not yet up (default for unknown)
connectedRelay session up
reconnectingRelay session down; seat held 30 s

SfuClosedReason enum

Specification
15 §15
Values
ValueMeaning
route_changedvideoRoute back to dc
negotiation_timeoutServer offer unanswered 10 s
removedRemoved
sfu_failedSFU failure; default for unknown

SourceId enum

Specification
15 §4.1
Values
ValueMeaning
0Microphone → audio list
1Screen video → video list
2Screen or application sound → audio list
3Webcam → video list
4–15Reserved: nobody forwards or plays them

TrackDirection enum

Specification
15 §8.2
Values
ValueMeaning
sendPublished by this device
recvSubscribed

TrackState enum

Specification
15 §8.2
Values
ValueMeaning
activeForwarding
pausedPaused by lease enforcement or layer choice; default for unknown

TransmitGateReason enum

Specification
15 §10.6
Values
ValueMeaning
reconnectingNo route up after the first relay session was up
connectingno route is up before the first relay session is up (16)
not_allowedNot covered for audio; blockedBy = audioBlockedBy
waiting_for_keysSecure: no send keys for selected epoch
mutedPTT held while self-muted

VideoBlockedBy enum

Specification
15 §4.1
Values
ValueMeaning
no_permissionLacks speak_and_share
timed_outTimeout
otherOther

VideoRoute enum

Specification
15 §2.5.1, §7.2
Values
ValueMeaning
dcvideo-dc/1 over the relay (default for unknown)
sfusfu-rtp/1 through the SFU

16 Audio

ApplicationSoundOpusProfile other

Opus encoder settings for source 2 (screen, application and game sound; also bot music). Its own encoder; applies also to Opus content carried in sfu-rtp/1.

Specification
16 §5.2
Fields
NameTypeRequiredMeaning and constraints
applicationstringYesOpus application
OPUS_APPLICATION_AUDIO
channelsintegerYesChannel count
2 (stereo) by default; 1 if captured source is mono
inputSampleRatestringYesEncoder input rate
48 kHz
bandwidthstringYesEncoded bandwidth
Fullband
frameDurationstringYesPacket duration
20 ms, one frame per packet
bitratestringYesTarget bitrate
96 kbit/s stereo or 64 kbit/s mono default; allowed 48–128 kbit/s
bitrateModestringYesBitrate mode
Secure: CBR MUST. Insecure: VBR MAY
inbandFecbooleanNoIn-band FEC
SHOULD be on; loss % per §5.3
dtxbooleanYesDTX
Off; silence gating (§5.4) replaces it; never carries D
signalstringYesSignal hint
OPUS_SIGNAL_MUSIC

AudioLossFeedback object

The d payload of a call.media_feedback control message with d.kind = audio_loss. Receivers ignore unknown members. expected counts sequence numbers from the first to the last received in the interval (silence isn't loss); lost = expected − received.

Specification
16 §4.7
Fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind
audio_loss
sourceIdintegerYesReported stream of sender to
0 or 2
lossPermilleintegerYesfloor(1,000 × lost / expected), before FEC
0–1,000
latePermilleintegerYesfloor(1,000 × late / expected)
0–1,000
bufferTargetMsintegerYesListener's current jitter target T
0–1,000
receivedintegerYesDistinct sequence numbers received in the interval
0–65,535, capped

AudioRecvStats object

Per-(pid, sourceId) receive counters inside AudioStats.recv.

Specification
16 §13
Fields
NameTypeRequiredMeaning and constraints
pidintegerYesThe sender
0–65535 (00 §7.6)
sourceIdintegerYesAudio source
0 or 2
framesReceivedintegerYesValid frames received, including duplicates
framesLostintegerYesSequence numbers never received (network loss)
framesLateintegerYes§9.3; also frames of a retired gen (§9.1)
framesDuplicateintegerYes§8.2
framesFecRecoveredintegerYes§9.4
framesConcealedintegerYes§9.4
fadeOutsintegerYes§9.4
decryptFailuresintegerYes§9.5
0 in insecure calls
leaseDropsintegerYes§12.2
attestationStopsintegerYes§9.5 (only 18 §9.8 stops)
reanchorsintegerYesRe-anchorings after a delay jump (§9.3)
targetMsintegerYesCurrent jitter target T
targetMaxMsintegerYesLargest T in the interval
holdP95MsintegerYes95th percentile of p_i − a_i for played frames

AudioSendStats object

Per-source send counters inside AudioStats.send.

Specification
16 §13
Fields
NameTypeRequiredMeaning and constraints
sourceIdintegerYesAudio source
0 or 2
framesSentintegerYesFrames created and handed to at least one transport
framesDroppedSendintegerYesFrames discarded by L2 or L3 (§7.5)
talkspurtsintegerYesTalkspurts started
bitrateKbpsintegerYesCurrent target bitrate
fecLossPercintegerYesCurrent OPUS_SET_PACKET_LOSS_PERC
cbrbooleanYesWhether the encoder is in constant-bitrate mode

AudioStats object

Audio diagnostics carried as the audio member of 15's diagnostics Sample (every 10 s and at call close). Counters count events since the previous Sample. Contains no audio, content or key material. Uploaded only as 15 §14.2's diagnostics setting allows.

Specification
16 §13
Fields
NameTypeRequiredMeaning and constraints
modestringYesTransmit mode
ptt, vad or open_mic; unknown values kept as text by collectors
sendarray<AudioSendStats>YesOne entry per audio source sent in the interval
may be empty
recvarray<AudioRecvStats>YesOne entry per (pid, sourceId) received in the interval
may be empty; at most 64 entries (streams with most frames received); in uploads at most 4 per Sample
recvOverflowAudioRecvStats without pid and sourceIdNoSummed overflow of recv entries
present only when entries were summed into it; counters are sums; targetMs, targetMaxMs, holdP95Ms are maxima
invalidDropsintegerYesFrames dropped by §4.9.1 before a stream was identified, or as invalid
captureGlitchesintegerYesCapture callbacks that delivered no or partial data
renderUnderrunsintegerYesRender callbacks that output silence because the engine was late
stallsintegerYesAudio-clock jumps of more than 500 ms between render callbacks
transmittingMsintegerYesTime TalkState was transmitting
notHeardMsintegerYesTime TalkState was not_heard
interruptionsintegerYesOperating-system audio interruptions (§7.9)

MicrophoneOpusProfile other

Opus encoder settings for source 0 (named after libopus controls; other encoders such as WebCodecs AudioEncoder MUST configure equivalent behaviour).

Specification
16 §5.1
Fields
NameTypeRequiredMeaning and constraints
applicationstringYesOpus application
OPUS_APPLICATION_VOIP
channelsintegerYesChannel count
1 (mono)
inputSampleRatestringYesEncoder input rate
48 kHz (resample other capture rates)
bandwidthstringYesEncoded bandwidth
Wideband by default (OPUS_SET_MAX_BANDWIDTH = OPUS_BANDWIDTH_WIDEBAND); up to fullband with "High-quality voice" (default off)
frameDurationstringYesPacket duration
20 ms; exactly one frame per packet, TOC code 0
bitratestringYesTarget bitrate
32 kbit/s default; 16–48 kbit/s wideband; 32–64 kbit/s with High-quality voice; never below 16 kbit/s
bitrateModestringYesBitrate mode
Secure: CBR (OPUS_SET_VBR = 0) MUST. Insecure: constrained VBR (OPUS_SET_VBR = 1, OPUS_SET_VBR_CONSTRAINT = 1) SHOULD
inbandFecbooleanYesIn-band FEC
MUST be on (OPUS_SET_INBAND_FEC = 1); loss % per §5.3
dtxbooleanYesDiscontinuous transmission
off in ptt and vad; on in open_mic (§5.4)
signalstringYesSignal hint
OPUS_SIGNAL_VOICE
complexityintegerNoEncoder complexity
10 on desktop, at least 5 on mobile and web (SHOULD)
encoderResetstringYesWhen encoder state is reset
OPUS_RESET_STATE at every gate opening, not at the S frame ending DTX in open mic

RouteHeader binary-frame

The first 12 octets of a VoiceDcFrame (vt, flags, pid, sourceId|gen, sequence, timestamp). Never encrypted. In secure calls it is exactly the SFrame metadata, so it is authenticated by the SFrame AEAD.

Signed by
Authenticated as SFrame metadata in secure calls (18); unauthenticated (DTLS hop-by-hop only) in insecure calls
Specification
16 §4.3, §4.6
Fields
NameTypeRequiredMeaning and constraints
vtuint8YesVersion and type
0x10
flagsuint8YesC, S, E, D flags
see FrameFlags
piduint16YesSender participant index
big-endian
sourceId4 bitsYesAudio source
0 or 2
gen12 bitsYesStream generation
low 12 bits of joinNonce
sequenceuint16YesPer-stream counter
big-endian
timestampuint32YesCapture instant of first sample
big-endian, 48 kHz

StreamState other

Receiver-side state kept per (pid, sourceId, gen) — in a secure call per (pid, sourceId, joinNonce). In a secure call it changes only after SFrame decryption succeeds. At most one current gen per (pid, sourceId) plus retired gens remembered 60 s; at most 4 streams per (pid, sourceId) in secure calls; discarded after 60 s without frames or when the participant leaves the roster.

Specification
16 §9.1, §9.2
Fields
NameTypeRequiredMeaning and constraints
decoderOpus decoderYesOne decoder per stream (§5.6)
48 kHz output, stream's channel count
jitterBufferbufferYesPer-stream jitter buffer
§9.3 bounds
duplicateRecordset of extended sequence numbersYesDeduplication (§8.2)
at least the last 128
highestSeqinteger (64-bit extended)YesHighest extended sequence number seen
serial-number arithmetic
Bnumber (ms)YesBase delay
min D over last 10 s; restarts after >10 s without frames
Tnumber (ms)YesTarget delay
60–180, initially 60
Onumber (ms)YesPlayout offset; deadline p_i = s_i + O
ideal O* = B + T; hold p_i − a_i ≤ 200 ms
activitystringYesActivity state (§9.4)
active / inactive / in DTX
countersAudioRecvStats countersYesPer-stream counters

TalkState other

Triple (state, reason, blockedBy) exported by the audio engine to the UI, computed in the same evaluation as the transmit gate; with userMuted, muteReason, mode, vadActive and the newest VoiceLease's audioBlockedBy it is the only input 20 uses for the talk and mute indicators. Delivered to the UI within 100 ms of every change.

Specification
16 §7.10
Fields
NameTypeRequiredMeaning and constraints
stateTalkStateStateYesTalk state
off | transmitting | not_heard | muted | idle
reasonTalkStateReason or nullNoWhy the user isn't heard / is muted / call condition
not_heard: muted, not_allowed, connecting, reconnecting, waiting_for_keys, no_microphone; muted: user, rejoin, interruption; idle: null, not_allowed, connecting, reconnecting; off/transmitting: none
blockedByBlockedBy or nullNoThe newest VoiceLease's audioBlockedBy: why the user isn't allowed to talk
set only when reason is not_allowed, null otherwise; other if the newest VoiceLease has audio true, none has arrived, or the value is unknown

TransmitGateInputs other

Inputs of the transmit gate, a pure function evaluated inside the audio engine on the audio clock, on every input change and at least every 10 ms of captured audio.

Specification
16 §7.2, §7.3
Fields
NameTypeRequiredMeaning and constraints
modeTransmitModeYesTransmit mode (§7.1)
ptt | vad | open_mic; per-device user setting; SHOULD default to vad
pttDownbooleanYesThe PTT control is held now, as observed by the client (§7.7)
treated as false (released) whenever the control is unobservable
userMutedbooleanYesThe user's own mute (including lease-block and rejoin/interruption mutes)
muteReasonMuteReasonNoWhy userMuted was last set to true
user | rejoin | interruption; cleared on deliberate unmute
vadActivebooleanYesSpeech detected now (§7.6)
computed in every mode; used for intent only in vad
callStateCallStateYesCall state for this device
joining | connected | reconnecting | migrating | ended; derived from 15's states, first match wins (ended, migrating, reconnecting, joining, connected)
routeUpbooleanYesA route can deliver a frame to every other listener now
true iff the relay connection is usable: sv-audio open, ICE neither disconnected nor failed, some relay message (any type, any channel) within the last 1,500 ms on the audio clock, and bufferedAmount not above 6,000 octets for the last 200 ms
leaseStateLeaseStateYesWhether own pid is in audio of a fresh lease tick
covered | excluded | stale (§12.3)
keysOkbooleanYesSecure call: may send source 0 now (18 §6.3 item 5)
always true in an insecure call
keysOkSharebooleanYesSecure call: may send source 2 now (18 §6.3 item 5)
always true in an insecure call
captureOkbooleanYesMicrophone open and delivering samples
shareActivebooleanYesUser is sharing screen or application sound (17 §4)
shareCaptureOkbooleanYesShared-sound capture open and delivering samples

VoiceDcFrame binary-frame

The only voice-dc/1 message type in version 1 (type 0, vt = 0x10): a 12-octet cleartext route header followed by exactly one Opus packet (insecure) or the SFrame ciphertext of one Opus packet (secure). One data-channel message on sv-audio carries exactly one frame. All multi-octet integers are unsigned big-endian.

Specification
16 §4.3
Fields
NameTypeRequiredMeaning and constraints
vtuint8YesVersion and type
octet 0; MUST be 0x10 (high 4 bits version = 1, low 4 bits type = 0)
flagsuint8 (FrameFlags)YesFrame flags C, S, E, D (§4.4)
octet 1; reserved bits (0x0F) MUST be sent as 0
piduint16YesThe sender's participant index in this call (00 §7.6, assigned by 15)
octets 2–3; MUST equal the sender's own pid
sourceId4 bitsYesThe audio source: 0 microphone, 2 screen or application sound
octets 4–5, high 4 bits; only 0 and 2 are valid in voice-dc/1
gen12 bitsYesStream generation (§4.5.1)
octets 4–5, low 12 bits; = joinNonce mod 4096; constant for the life of the media process
sequenceuint16YesPer-stream message counter (§4.5.2)
octets 6–7; starts at 0 per stream, +1 per frame message created; wraps modulo 2^16; receivers extend to 64 bits (RFC 1982)
timestampuint32YesSampling instant of the first sample in the packet (§4.5.3)
octets 8–11; 48 kHz units counted from the media process's T0; wraps modulo 2^32; 960 per 20 ms packet
payloadoctetsYesOne Opus packet (C = 0) or the SFrame ciphertext of one Opus packet (C = 1) (§4.6)
octet 12 onward; at least 1 octet; ABNF 1*1088OCTET; Opus packet at most 1,000 octets; whole message at most 1,100 octets

BlockedBy enum

Values
ValueMeaning
no_permissionValue of the newest VoiceLease's audioBlockedBy (15 §4.1, §4.10); per §7.10 tells the user they have no permission to speak
muted_for_everyoneValue of audioBlockedBy (15 §4.1, §4.10); per §7.10 tells the user a moderator muted them (Mute for everyone, 15)
server_mutedValue of audioBlockedBy (15 §4.1, §4.10); meaning defined by 15, not by 16
timed_outValue of audioBlockedBy (15 §4.1, §4.10); per §7.10 tells the user they are timed out
otheraudioBlockedBy is other, or the newest VoiceLease has audio true, or no VoiceLease has arrived yet, or its value is unknown

call.media_feedback kinds defined here enum

Specification
16 §4.7
Values
ValueMeaning
audio_lossListener loss report for one audio stream (§4.7)

CallState enum

Specification
16 §7.2
Values
ValueMeaning
joiningFrom sending a non-rejoin join until the first lease tick on the new relay connection
connected15 in_call, or restoring once the first tick arrived; includes planned migrations other than security_upgraded/group_restarted
reconnecting15 rejoining/waiting, or restoring before first tick, after an unexpected drop (incl. call.ended server_restart, auto-rejoin after process restart)
migratingFrom call.ended security_upgraded/group_restarted or relay.closing call_restarted until the first tick of the new call
endedNo participation (before join, after Leave, terminal event, migration closed with G1/G2)

FrameFlags enum

Specification
16 §4.4
Values
ValueMeaning
0x80 (C)Ciphertext: payload is SFrame ciphertext. MUST be 1 in a secure call and 0 in an insecure call (SM-11)
0x40 (S)Start: first frame of a talkspurt; receiver re-anchors playout
0x20 (E)End: last frame of a talkspurt; receiver then plays silence without concealment
0x10 (D)DTX: frame produced in Opus DTX (DTX packet or comfort-noise update); missing frames after it are comfort noise, not loss. Only microphone frames in open-mic mode; MUST NOT be combined with S or E
0x0F (reserved)Senders send 0; receivers ignore; relays forward unchanged

LeaseState enum

Specification
16 §12.3
Values
ValueMeaning
coveredOwn pid in K.audio of a fresh tick
excludedFresh tick, own pid not in K.audio
staleNo accepted tick, or t − K.rxAt ≥ V (3,000 ms)

MuteReason enum

Values
ValueMeaning
userUser's own mute; also covers the lease-block mute of §7.8 and Deafen
rejoinAuto-mute of vad/open_mic users on an unexpected drop or process-restart rejoin
interruptionAuto-mute after an OS audio interruption longer than 2 s

ReceiverStreamActivity enum

Specification
16 §9.4
Values
ValueMeaning
activeFrom an S frame (or first frame, or first frame while inactive) until an E frame is played or it fades out
inactiveAfter E played or after a concealment fade-out
in DTXAfter a D frame has been played: missing frames render decoder comfort noise, not counted as loss

sourceId enum

Specification
16 §2, §4.3
Values
ValueMeaning
0Microphone (audio, voice-dc/1)
1Screen video (17; invalid in voice-dc/1)
2Screen or application sound (audio, voice-dc/1 or sfu-rtp/1)
3Webcam (17; invalid in voice-dc/1)
4–15Reserved

Also described in 18 §4.2.

TalkStateReason enum

Specification
16 §7.10
Values
ValueMeaning
mutednot_heard: userMuted (deliberate mute wins over held PTT)
not_allowednot_heard/idle: leaseState = excluded; blockedBy set
connectingnot_heard/idle: callState = joining
reconnectingnot_heard: callState != connected or NOT routeUp or leaseState = stale; idle: callState reconnecting or migrating
waiting_for_keysnot_heard: NOT keysOk
no_microphonenot_heard: NOT captureOk
usermuted: muteReason user
rejoinmuted: muteReason rejoin
interruptionmuted: muteReason interruption
nullidle with no condition to show

TalkStateState enum

Specification
16 §7.10
Values
ValueMeaning
offNot in a call on this device
transmittingGate open and frames being sent
not_heardUser is trying to talk but isn't being heard
mutedUser is muted and not holding PTT
idleNot trying to talk

TransmitMode enum

Specification
16 §7.1
Values
ValueMeaning
pttPush-to-talk: user holds a physical control
vadVoice activation: client detects speech (recommended default)
open_micOpen mic: always, while not muted

VoiceDcMessageType (vt) enum

Specification
16 §4.2
Values
ValueMeaning
0x10Type 0, Frame (§4.3); sender to relay, relay to listener
0x11–0x1FTypes 1–15 reserved: senders MUST NOT send; receivers and relays drop silently
any otherOther versions: receivers and relays drop silently. A future incompatible format is a new profile (voice-dc/2)

17 Screen share and webcam

Clear prefix (sfu-rtp/1, secure calls) other

First octets of an encoded frame left unencrypted on the SFU route in secure calls, authenticated through 18's SfuFrameMetadata: VP8 key frame 10 octets (3-octet frame tag, 3-octet start code, 4 octets width/height), VP8 interframe 3 octets (bit 0 of first octet: 0 = key, 1 = inter), VP9 0, Opus 0. Frame data = clear prefix ‖ SFrame ciphertext. A frame shorter than its clear prefix + 1 octet is invalid.

Specification
17 §12.6

keyframe_request object

d payload of 15's call.media_feedback, viewer to sender: asks for a keyframe. At most 1 per second per (viewer, source). Replaced by RTCP PLI/FIR on the SFU route.

Specification
17 §7.2
Fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind
keyframe_request
sourceIdintegerYesSource
1 or 3
reasonenum keyframe_request reasonYesWhy the keyframe is needed
subscribe, loss, decoder_error, route_change; unknown values treated as loss

Protected frame other

The bytes that are fragmented: in an insecure call (C=0) the encoded frame itself; in a secure call (C=1) the SFrame ciphertext (RFC 9605 §4.2: SFrame header, encrypted data, tag) of the whole encoded frame, with the 16-octet frame header as SFrame metadata, produced by the media process's main encryptor instance, one SFrame counter per frame. At most 2,097,152 octets.

Specification
17 §6.5

video_audience object

Relay-originated call.media_feedback payload (no from): number of relay viewers of a source. Sent on change (coalesced to at most 1 per second per source, newest value) and once per active source when the sender's session starts.

Specification
17 §7.5
Fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind
video_audience
sourceIdintegerYesSource
1 or 3
viewersintegerYesSessions currently subscribed to this source via relay.subscribe

video_report object

d payload of call.media_feedback, viewer to sender, every 1,000 ms (audio clock) while receiving a source. At most 1 per second per (viewer, source). Replaced by RTCP on the SFU route.

Specification
17 §7.4
Fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind
video_report
sourceIdintegerYesSource
1 or 3
genintegerYesStream generation reported on
0-4,095; reports for an old gen are ignored
intervalMsintegerYesLength of the interval covered
about 1,000
framesCompleteintegerYesFrames that completed reassembly in the interval
framesIncompleteintegerYesFrames abandoned in the interval (§6.9)
framesLateintegerYesFrames dropped as behind (§6.10 item 2) plus frames whose fragments all arrived late (§6.9 slot rule 5)
each late frame number counted once; frames shown late (§11.2) excluded
framesUndecodableintegerYesFrames discarded because the chain was broken
waitingKeyframebooleanYesThe viewer's chain is broken now
rxKbpsintegerYesFragment octets received for this source in the interval
kbit/s
congestedbooleanYesViewer is congested: over the last 2 s, framesIncomplete+framesLate > 5 % of frames sent, or p95 non-keyframe assembly time > 50 ms + one frame interval; also true while waiting for a keyframe after a chain break
§7.4.1

video_upload_pressure object

Relay-originated call.media_feedback payload (no from): the relay dropped some of the sender's video because it exceeded the inbound caps (§8.3) or maxInboundKbps. At most 1 per second per source. Counts as pressure signal P2.

Specification
17 §7.5
Fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind
video_upload_pressure
sourceIdintegerYesSource
1 or 3
droppedOctetsintegerYesOctets of this source dropped in the interval
intervalMsintegerYesLength of the interval

video_viewer_state object

Relay-originated call.media_feedback payload (no from, to = sender pid): a viewer's forwarding state for one of the sender's sources changed. Coalesced to at most 1 per second per (viewer, source), newest state always sent; normal sent once when a viewer unsubscribes or leaves.

Specification
17 §7.5
Fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind
video_viewer_state
sourceIdintegerYesSource
1 or 3
viewerintegerYesThe viewer's pid
stateenum viewer stateYesForwarding state (§8.2)
normal, thinned, keyframes_only, paused; unknown values treated as paused

video-dc/1 Fragment binary-frame

The only video-dc/1 message type (vt 0x10): a 16-octet frame header, 4 octets of fragment fields, then 1 to 1,180 octets of the protected frame. Sent on the sv-video data channel (id 2) of a relay connection, one fragment per data-channel message; total 21 to 1,200 octets. Sender to relay, relay to viewer.

Specification
17 §6.2
Fields
NameTypeRequiredMeaning and constraints
vtuint8YesVersion and type
octet 0; MUST be 0x10 (high 4 bits version = 1, low 4 bits type = 0); 0x11-0x1F reserved and other versions dropped silently
flagsuint8 (bit flags)YesFrame flags (§6.3)
octet 1; C=0x80, K=0x40, D=0x20, E=0x10, 0x0F reserved (send 0, receivers ignore, relays forward unchanged); K and D not both set
piduint16YesThe sender's participant index (15)
octets 2-3; MUST equal the sender's own pid
sourceId4 bitsYesVideo source
high 4 bits of octets 4-5; only 1 (screen video) or 3 (webcam) are valid
gen12 bitsYesStream generation (§4.4, 16 §4.5.1)
low 12 bits of octets 4-5; = joinNonce mod 4096; constant for the media process
frameNumberuint16YesPer-stream frame counter (§6.4)
octets 6-7; starts at 0 per stream (pid, sourceId, gen), +1 per frame, wraps modulo 2^16; extend to 64 bits with RFC 1982
refSequint16YesReference-chain counter (§6.4, §6.10)
octets 8-9; wraps modulo 2^16; first keyframe 0; each non-discardable frame = previous non-discardable + 1; discardable frames carry the newest non-discardable frame's refSeq
timestampuint32YesCapture instant of the picture
octets 10-13; 90 kHz periods since the media process's T0, wraps modulo 2^32; non-decreasing within a stream; compare with RFC 1982 serial arithmetic
codecuint8 (enum video-dc/1 codec octet)YesCodec of the encoded frame (§5.1)
octet 14; 0x01-0x04 in v1
frameInfouint8YesRotation (clockwise, 90° steps) to apply before display
octet 15; bits 7-6 rotation; bits 5-0 reserved (send 0, ignore); rotation is 0 for source 1
fragIndexuint16YesIndex of this fragment
octets 16-17; from 0; fragIndex < fragCount; NOT part of the frame header / SFrame metadata
fragCountuint16YesNumber of fragments of this frame
octets 18-19; 1 to 2,048; NOT part of the frame header / SFrame metadata
chunkoctetsYesPart of the protected frame (§6.5)
octets 20-; 1 to 1,180 octets; senders SHOULD use 1,130

video-dc/1 frame header binary-frame

Octets 0-15 of every fragment (vt, flags, pid, sourceId|gen, frameNumber, refSeq, timestamp, codec, frameInfo). Identical in every fragment of one frame. In secure calls it is exactly the SFrame metadata that 18 authenticates; cleartext so relays can read K and D.

Fields
NameTypeRequiredMeaning and constraints
vtuint8YesVersion and type
0x10
flagsuint8YesC, K, D, E
see enum video-dc/1 flags
piduint16YesSender pid
sourceId4 bitsYesVideo source
1 or 3
gen12 bitsYesStream generation
0-4095
frameNumberuint16YesFrame counter
refSequint16YesReference-chain counter
timestampuint32YesCapture instant
90 kHz
codecuint8YesCodec octet
0x01-0x04
frameInfouint8YesRotation
rotation in bits 7-6

VideoPreference object

video_pref payload of call.media_feedback, viewer to sender: whether the viewer watches a source, the display area and frame rate it needs, and the codecs it can decode. At most 2 per second per (viewer, sender). Travels through the relay on sv-control whether videoRoute is dc or sfu; on the SFU route the viewer also maps it onto its subscription's layer limits (§12.3).

Specification
17 §7.3
Fields
NameTypeRequiredMeaning and constraints
kindstringYesFeedback kind
video_pref
sourceIdintegerYesSource
1 or 3
subscribedbooleanYesWhether the viewer watches the source now. Informative: forwarding follows relay.subscribe (15 §6.6) on the relay and the viewer's subscription (§12.3) on the SFU route; the sender uses it to know its viewers (codec selection, viewer cap, viewer count).
maxWidthintegerNoThe LARGER edge, in device pixels, of the viewer's display area (not necessarily the horizontal one)
16-3,840; default no cap
maxHeightintegerNoThe SMALLER edge of that area
16-3,840; default no cap
maxFpsintegerNoMaximum useful frame rate
1-60; default no cap
decodearray<string>YesCodecs the viewer can decode in real time
codec names from §5.1; MUST include vp8; unknown names ignored; at most 8 entries; no order

VideoRecvStats object

Per received (pid, sourceId) entry of VideoStats.recv; pid -1 is the summed overflow entry.

Specification
17 §14
Fields
NameTypeRequiredMeaning and constraints
pidintegerYesSender
-1 for the summed overflow entry
sourceIdintegerYesSource
1 or 3
routestringYesRoute of most frames in the interval
relay or sfu; unknown values stored as given
codecstringYesCodec
codec name; unknown values stored as given
widthintegerYesWidth of the last decoded picture
heightintegerYesHeight of the last decoded picture
fragmentsReceivedintegerYes§6.9
0 on sfu
fragmentsDuplicateintegerYes§6.9
0 on sfu
fragmentsLateintegerYes§6.9
0 on sfu
framesCompleteintegerYes§6.9
framesIncompleteintegerYes§6.9
framesDecodedintegerYes§6.10
framesDisplayedintegerYes§11.2
framesShownLateintegerYesFrames decoded more than 80 ms after due (§11.2)
framesLateintegerYes§6.10
framesUndecodableintegerYes§6.10
keyframeRequestsSentintegerYes§7.2
decryptFailuresintegerYes§10.4
leaseDropsintegerYes§10.3
attestationStopsintegerYes§10.4
heldMsintegerYesTime spent in held
heldEntriesintegerYesTransitions into held (§10.1)
avSkewP95Msinteger|nullYesp95 of absolute presentation skew between screen video and sound
null unless source 1 with source 2
lipSyncP95Msinteger|nullYesp95 of webcam lateness relative to the voice
null unless source 3

VideoSendStats object

Per sent video source entry of VideoStats.send.

Specification
17 §14
Fields
NameTypeRequiredMeaning and constraints
sourceIdintegerYesSource
1 or 3
routestringYesRoute that carried most of the source's frames in the interval
relay or sfu; unknown values stored as given
videoRoutestringYesThe call's videoRoute (15 §7.2; cited in 17 as 15 §7.6)
dc or sfu; unknown values stored as given
codecstringYesCodec in use
codec name (§5.1); unknown values stored as given
contentHintstring|nullYesContent hint
detail or motion for source 1; null for source 3
rungintegerYesCurrent effective rung (dc only)
-1 on sfu
controllerRungintegerYesCurrent controller rung r (§9.2)
-1 on sfu
widthintegerYesCurrent encoded width
heightintegerYesCurrent encoded height
fpsintegerYesCurrent frame rate
targetKbpsintegerYesCurrent encoder target
framesEncodedintegerYesFrames encoded
keyframesintegerYesKeyframes sent
keyframeRequestsintegerYesRequests received
picturesSkippedintegerYesPictures not encoded because of backlog (§8.1)
framesDiscardedintegerYesFrames discarded after encoding (§5.9, §6.6, §8.1)
pressureSignalsintegerYesPressure signals (§9.1)
stepDownsintegerYes§9.2
stepUpsintegerYes§9.2
failedStepUpsintegerYes§9.2
viewersintegerYesKnown viewers (§9.1)
slowViewersintegerYesViewers whose state isn't normal

VideoStats object

Diagnostic counters recorded in each diagnostics Sample (15 §14.1) as the optional Sample member video, every 10 s and when a call closes. Counters count events since the previous Sample. No pictures, content or key material.

Specification
17 §14
Fields
NameTypeRequiredMeaning and constraints
sendarray<VideoSendStats>YesOne entry per video source sent in the interval
may be empty
recvarray<VideoRecvStats>YesOne entry per (pid, sourceId) received in the interval
may be empty; at most 32 entries when recorded, 4 when uploaded (those with most framesDisplayed); the rest summed into an entry with pid = -1
invalidDropsintegerYesFragments or frames dropped as invalid (§6.8.1)
codecUnsupportedintegerYesFragments dropped for an unknown or undecodable codec (§6.8.1)

call.media_feedback kind (video) enum

Specification
17 §7.1
Values
ValueMeaning
keyframe_requestViewer → sender; ≤1/s per (viewer, source)
video_prefViewer → sender; ≤2/s per (viewer, sender)
video_reportViewer → sender; ≤1/s per (viewer, source)
video_viewer_stateRelay → sender (no from); ≤1/s per (viewer, source)
video_audienceRelay → sender (no from); ≤1/s per source
video_upload_pressureRelay → sender (no from); ≤1/s per source

Content hint enum

Specification
17 §5.6
Values
ValueMeaning
detailText, slides, code: keep sharpness, shed frame rate first (default)
motionGames, video: keep smoothness, shed resolution first

Controller phase enum

Specification
17 §9.2
Values
ValueMeaning
steadyNormal operation
trial10 s after a step-up; 3 pressure signals revert it and double H

keyframe_request reason enum

Specification
17 §7.2
Values
ValueMeaning
subscribeStarted viewing
lossReference chain broken (§6.10); also the treatment of unknown values
decoder_errorDecoder rejected a frame
route_changeNo keyframe within 1,000 ms after a switch to dc (§13.3)

Pressure signal enum

Specification
17 §9.1
Values
ValueMeaning
P1Own uplink: relay connection backlog > 250 ms while carrying s, or pictures skipped because of relay connection backlog
P2Relay drops: a video_upload_pressure for s arrived
P3Strictly more than half of the current viewers are pressured (congested report < 3 s old, or viewer state not normal)
P4Device: encoder can't keep up, or thermal/battery pressure

Receiver viewing state enum

Specification
17 §10.1
Values
ValueMeaning
offNot viewing
loadingSubscribed, waiting for a decodable keyframe; neutral placeholder with spinner
playingDisplaying pictures
heldNo new picture for 750 ms; last picture kept with a calm 'Picture delayed' label (never the word 'Paused')
blockedSender not covered for video, or MediaAttestation stopped the stream; participant avatar placeholder

rotation enum

Specification
17 §6.4
Values
ValueMeaning
0none
190° clockwise
2180°
3270°

Screen detail ladder enum

Specification
17 §5.5
Values
ValueMeaning
52560 × 1600, 15 fps, budget 5,000 kbit/s, target 4,000
42560 × 1600, 8 fps, budget 3,500, target 2,800
31920 × 1200, 8 fps, budget 2,200, target 1,760 (starting rung)
21920 × 1200, 5 fps, budget 1,500, target 1,200
11600 × 1000, 5 fps, budget 900, target 720
01280 × 800, 3 fps, budget 500, target 400

Screen motion ladder enum

Specification
17 §5.5
Values
ValueMeaning
51920 × 1080, 60 fps, budget 8,000, target 6,400 (only with 'Smoother video (uses more data)', default off)
41920 × 1080, 30 fps, budget 5,000, target 4,000
31600 × 900, 30 fps, budget 3,500, target 2,800
21280 × 720, 30 fps, budget 2,200, target 1,760 (starting rung)
11280 × 720, 15 fps, budget 1,200, target 960
0960 × 540, 15 fps, budget 700, target 560

sfu-rtp/1 codec support enum

Specification
17 §12.4
Values
ValueMeaning
VP8 (RFC 7741)MUST send and receive, insecure and secure
VP9 profile 0 (RFC 9628)MAY, insecure and secure
H.264 CB packetization-mode=1 (RFC 6184)SHOULD in insecure; MUST NOT in secure in v1
AV1 Main (AV1 RTP spec)MAY in insecure; MUST NOT in secure in v1
Opus source 2 (RFC 7587)MUST; stereo=1, sprop-stereo=1, useinbandfec=1; cbr=1 in secure calls

sfu-rtp/1 publishing structure enum

Specification
17 §12.5
Values
ValueMeaning
WebcamVP8/H.264: 3 simulcast encodings rid q (scaleResolutionDownBy 4), h (2), f (1), each L1T3; VP9: L3T3_KEY
Screen motionVP8/H.264: 2 encodings h (2), f (1), each L1T3; VP9: L2T3_KEY
Screen detailVP8/H.264: 1 encoding f, L1T3 (or L1T2); VP9: L1T3

sfu-rtp/1 RTCP feedback enum

Specification
17 §12.4
Values
ValueMeaning
nackRFC 4585; MUST for video
nack pliMUST for video
ccm firRFC 5104; MUST for video
transport-ccMUST for video
goog-rembMAY
RTX (RFC 4588)Retransmission; MUST be supported for video
RED, ULPFEC, FlexFECMAY

sfu-rtp/1 RTP header extensions enum

Specification
17 §12.4
Values
ValueMeaning
urn:ietf:params:rtp-hdrext:sdes:midBUNDLE demultiplexing (RFC 9143); MUST
urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id and …:repaired-rtp-stream-idSimulcast (RFC 8852); MUST with simulcast
http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01Congestion control; MUST
https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extensionLayer forwarding; MUST with VP9 in every §12.5 mode; MAY with VP8; MAY with H.264 and AV1 (insecure only)
urn:3gpp:video-orientationWebcam rotation; SHOULD for source 3
http://www.webrtc.org/experiments/rtp-hdrext/abs-capture-timeCapture time; MAY
http://www.webrtc.org/experiments/rtp-hdrext/playout-delayLow-delay hint for screen share; MAY
urn:ietf:params:rtp-hdrext:ssrc-audio-levelAudio level (RFC 6464); MUST NOT on source 2 in secure calls; MAY in insecure calls

sourceId (video-related) enum

Specification
17 §4.1
Values
ValueMeaning
1Screen video (whole screen, window or browser tab); video-dc/1 or sfu-rtp/1; lease list video; at most 1 per participant
2Screen or application sound; voice-dc/1 (16) or sfu-rtp/1 Opus; lease list audio; at most 1
3Webcam; video-dc/1 or sfu-rtp/1; lease list video; at most 1
0Microphone (owned by 16)
4-15Reserved: senders MUST NOT send; receivers and relays MUST drop

SRTP protection profile (sfu-rtp/1) enum

Specification
17 §12.2
Values
ValueMeaning
SRTP_AEAD_AES_128_GCMSHOULD be offered first
SRTP_AES128_CM_HMAC_SHA1_80MUST be supported

Temporal structure (video-dc/1) enum

Specification
17 §5.4
Values
ValueMeaning
L1T1Every frame non-discardable; RECOMMENDED for screen detail at 8 fps or less
L1T2Even positions after a keyframe non-discardable (TL0), odd positions discardable (TL1); RECOMMENDED for webcam and screen motion at 15 fps or more

Video codec name (VideoPreference.decode, VideoStats) enum

Specification
17 §5.1
Values
ValueMeaning
vp8VP8 (mandatory)
vp9VP9 profile 0
h264H.264 Constrained Baseline
av1AV1 Main 8-bit

video-dc/1 codec octet enum

Specification
17 §5.1
Values
ValueMeaning
0x00Reserved
0x01 vp8One VP8 frame (RFC 6386); decode MUST, encode MUST; WebCodecs vp8
0x02 vp9One VP9 frame or superframe, profile 0 (8-bit 4:2:0); decode SHOULD, encode MAY; vp09.00.51.08
0x03 h264One access unit, Annex B, Constrained Baseline; decode SHOULD, encode MAY; avc1.42e033
0x04 av1One temporal unit, low-overhead bitstream format, Main profile 8-bit; decode SHOULD, encode MAY; av01.0.13M.08
0x05-0xFFReserved: receivers drop and count in codecUnsupported; senders MUST NOT use

video-dc/1 flags enum

Specification
17 §6.3
Values
ValueMeaning
C (0x80)Ciphertext: protected frame is SFrame ciphertext. MUST be 1 in secure calls, 0 in insecure calls (SM-11)
K (0x40)Keyframe; starts a new reference chain
D (0x20)Discardable: no later frame references it; MUST be 0 when K is 1
E (0x10)End of source: last frame before the sender stopped the source
0x0FReserved: send 0, receivers ignore, relays forward unchanged

video-dc/1 message type (vt) enum

Specification
17 §6.2
Values
ValueMeaning
0x10Type 0, Fragment
0x11-0x1FTypes 1-15 reserved; drop silently
any otherOther versions; drop silently

videoRoute (values owned by 15 §7.2) enum

Specification
17 §13, 15 §7.2
Values
ValueMeaning
dcVideo on video-dc/1 through the relay
sfuVideo on sfu-rtp/1 through the SFU

VideoStats route enum

Specification
17 §14
Values
ValueMeaning
relayVia the relay
sfuVia the SFU

Viewer state enum

Specification
17 §8.2, §7.5
Values
ValueMeaning
normalAll frames forwarded
thinnedDiscardable frames dropped (half frame rate with L1T2)
keyframes_onlyOnly keyframes forwarded (needKey)
pausedKeyframe dropped for congestion; nothing forwarded until a keyframe fits; viewer sees a held picture. Unknown values are treated as paused.

Webcam ladder enum

Specification
17 §5.5
Values
ValueMeaning
31280 × 720, 30 fps, budget 1,800, target 1,440
2960 × 540, 30 fps, budget 1,000, target 800 (starting rung on desktop)
1640 × 360, 30 fps, budget 500, target 400 (starting rung on mobile; max while a screen share is active)
0320 × 180, 15 fps, budget 150, target 120

18 Media end-to-end encryption

EpochMediaState other

Local per-epoch key state of a device in a secure call. Never persisted to key archive, HistoryShare or backup.

Specification
18 §6.1
Fields
NameTypeRequiredMeaning and constraints
groupIdstringYesContext group's group_id.
includes generation (13 §4.1)
epochintegerYesThe epoch e.
media epoch secretbytesYessframe_epoch_secret(e).
16 octets; MLS-Exporter("SFrame 1.0 Base Key", "", 16)
roster snapshotarray<object>YesLeaf index, DSK (signature_key), DeviceCertificate did, IdentityCertificate canonical address; used for KID checks and attestation verification after MLS moves on.
every non-blank leaf of epoch e, from that epoch's ratchet tree
key cacheobjectNoDerived sender_base_key, sframe_key, sframe_salt.
optional, evictable
replay stateReplayStateYes§7 replay/attestation records.
per KID
installedAtmonotonic timeYesWhen installed.
retention deadlinetimeNoWhen it is erased (§6.6).
T(x) + 10,000 ms

FrameHashInput tls-record

Input to the frame hash: frame_hash = first 8 octets of SHA-256(FrameHashInput). Computed over bytes as sent/received; because a frame is encrypted once and forwarded unchanged, every receiver computes the sender's hash whatever route delivered it.

Specification
18 §9.2
Fields
NameTypeRequiredMeaning and constraints
metadataopaque<V>YesThe frame's SFrame metadata.
voice-dc/1: 12-octet route header; video-dc/1: video frame header; sfu-rtp/1: SfuFrameMetadata encoding
sframe_ciphertextopaque<V>YesSFrame header || encrypted data || tag.
voice-dc/1: octets 12 to end; video-dc/1: reassembled ciphertext; sfu-rtp/1: X

KID other

56-bit SFrame key ID: (joinNonce << 24) | (sourceId << 20) | (leaf_index << 4) | (epoch mod 16). context_id = (joinNonce << 4) | sourceId (36 bits). Bits 63-56 always 0. In JSON a decimal string (kid-string).

Specification
18 §4.1
Fields
NameTypeRequiredMeaning and constraints
joinNonceuint32YesThe encryptor instance's joinNonce.
bits 55-24; (K >> 24) & 0xFFFFFFFF
sourceIdsourceIdYesThe media source.
bits 23-20; (K >> 20) & 0xF; 4-15 reserved
leaf_indexuint16YesSender device's leaf index in the context group in the frame's epoch.
bits 19-4; (K >> 4) & 0xFFFF; < 65,536
epoch residueuint4YesLow 4 bits of the MLS epoch whose keys protect the frame.
bits 3-0; K & 0xF

MediaAttestation object

The d of a media.attestation control-channel message. Senders MUST NOT add other members; receivers ignore unknown members (unsigned). Serialized message at most 3,600 octets.

Signed by
DSK (via MediaAttestationContent)
Specification
18 §9.5
Fields
NameTypeRequiredMeaning and constraints
vintegerYesFormat version.
1
callIduuidv7YesThe call's callId.
lowercase hyphenated
epochintegerYesMLS epoch of the KID's keys.
low 4 bits = KID residue
srcintegerYesKID's sourceId.
0-3
kidstringYesThe KID as a decimal string.
kid-string
firstintegerYesFirst counter.
0 to 2^32 - 1
lastintegerYesLast counter.
first <= last <= first + 255; <= 2^32 - 1
hashesbase64urlYesFrame hashes.
8 x (last - first + 1) octets
sigbase64urlYesLabelled signature.
64 octets

Also described in 00 §6 HP-5.

MediaAttestationContent tls-record

Signed content of a MediaAttestation. sig = SignLabelled(DSK, "media-attest", content) = Ed25519-Sign(DSK, "sv1 sig" || 0x00 || "media-attest" || 0x00 || content). Signer identified by the KID's leaf, not a field.

Signed by
device signing key (DSK) of the sender device, label media-attest
Specification
18 §9.4
Fields
NameTypeRequiredMeaning and constraints
versionuint8YesVersion.
1
group_idopaque<V>YesThe context group's group_id (binds server, context, generation).
UTF-8 (13 §4.1)
epochuint64YesFull MLS epoch of the KID's keys.
call_idopaque[16]YesThe call's callId.
16-octet binary UUID (RFC 9562)
kiduint64YesThe KID.
first_counteruint64YesFirst counter of the batch.
last_counteruint64YesLast counter of the batch.
frame_hashesopaque<V>YesFrame hashes of the batch.
8 x (last_counter - first_counter + 1) octets, counter order

MediaAttestationReportData object

data of a diagnostics report of kind media_attestation, sent with POST /v1/diagnostics (15 §14.3) to the call's hosting server. Carries no KID, counter, hash, nonce or key.

Specification
18 §10.3
Fields
NameTypeRequiredMeaning and constraints
reasonmedia_attestation reasonYesFailure kind.
invalid | mismatch | equivocation | unattested; server ignores unknown values
senderPidintegerYespid whose stream was stopped, or to whose stream the invalid attestation was attributed.
sourceIdintegerYesSource.
0-3
routestringYesRoute on which the stream's frames arrived at the time of failure.
relay | sfu; server stores unknown as other
playedUnverifiedMsintegerYesMilliseconds of media of the stop list that were played.
0 for invalid
stopsInCallintegerYesCounted stops in this call so far, all streams.

ReplayState other

Per (epoch, KID) receiver state inside an EpochMediaState.

Fields
NameTypeRequiredMeaning and constraints
HintegerNoHighest counter recorded under the KID.
undefined before first
HaintegerNoHighest attested counter.
undefined before first attested frame
recordarray<object>YesPer accepted counter: acceptance time (audio clock), frame hash, played flag, attested flag.
counters c > H - 4096
HstopintegerNoPer KID of a stopped stream: H after the rollback at the latest stop (§9.8). Held with the stream's playback state; §7 does not list it.
set on stop
play floorintegerNoPer KID of a stream: set to the current H on resume; frames at or below it are recorded and verified but never played (§9.8). Not listed in §7.
set on resume

SFrameCiphertext binary-frame

Output of SFrame encryption (RFC 9605 §4.2): SFrame header || AES-128-GCM encrypted data || 16-byte tag. AAD = header || metadata; nonce = sframe_salt XOR uint96(CTR). Overhead at most 29 bytes per frame per §3.2.

Specification
18 §3.4
Fields
NameTypeRequiredMeaning and constraints
headerSFrameHeaderYesEncodes KID and CTR.
encrypted databytesYesAES-128-GCM ciphertext of the frame.
plaintext never empty
tagbytesYesGCM authentication tag.
16 octets

SFrameHeader binary-frame

RFC 9605 §4.3 SFrame header: config byte (X, K, Y, C) then KID bytes (if X = 1) then counter bytes (if Y = 1). Senders use minimal encoding; receivers accept any RFC 9605 encoding. Usually 8 to 12 bytes with the §4 KID layout.

Specification
18 §3.2
Fields
NameTypeRequiredMeaning and constraints
XbitYes0: K holds the KID (KID < 8); 1: KID follows in K + 1 bytes, big-endian.
bit 7 of config byte
K3 bitsYesKID value (X = 0) or KID length minus 1 (X = 1).
bits 6-4
YbitYes0: C holds the counter (< 8); 1: counter follows in C + 1 bytes.
bit 3
C3 bitsYesCounter value (Y = 0) or counter length minus 1 (Y = 1).
bits 2-0
kid-bytesbytesNoKID, big-endian.
0-8 octets; present only when X = 1; KID < 2^56
ctr-bytesbytesNoCounter (CTR), big-endian.
0-8 octets; present only when Y = 1; counter < 2^32

SfuFrameMetadata tls-record

SFrame metadata on the sfu-rtp/1 path (TLS presentation encoding, 04 §3.2). Authenticates the codec and the clear prefix. Never the bare clear prefix.

Specification
18 §8.4.3
Fields
NameTypeRequiredMeaning and constraints
versionuint8YesStructure version.
1; receiver treats any other value as invalid
codecSfuFrameMetadata codecYesBinds the frame to its codec.
uint8; 1 Opus, 2 VP8, 3 VP9; from the negotiated payload type
clear_prefixopaque<V>YesThe clear prefix octets.
possibly empty; length per §8.4.2

SfuTransformedFrame binary-frame

Encoded frame data after the sender's encoded transform on sfu-rtp/1: P || X, where P is the codec's clear prefix (first p octets of the encoded frame) and X is the SFrame ciphertext of the rest.

Specification
18 §8.4.4
Fields
NameTypeRequiredMeaning and constraints
PbytesYesClear prefix, readable by SFU/packetizer, authenticated via SfuFrameMetadata.
p octets: Opus 0; VP8 10 (keyframe) or 3; VP9 0
XSFrameCiphertextYesSFrame ciphertext of the rest of the frame.
plaintext B at least 1 octet

StreamPlaybackState other

Receiver-local state per stream (pid, sourceId, joinNonce) of a secure call, plus a stop history per (pid, sourceId). Drives when a source is rendered (§9.8).

Specification
18 §9.8
Fields
NameTypeRequiredMeaning and constraints
stateStream playback stateYesWhether the stream's frames reach the speakers or screen.
playing | stopped; a new stream starts stopped if its (pid, sourceId) has a stop in the last 60 s that hasn't been withdrawn
stop listarray<object>NoCounter and frame hash of every frame of the stream that was played and isn't attested at the stop; used for withdrawal and late comparison.
kept 5,000 ms after the stop
Hstopinteger per KIDNoH after the rollback at the latest stop; a clean attestation must cover a frame accepted after the failure with a counter above it.
absent for a new stream that starts stopped
play floorinteger per KIDNoFrames at or below it are never played.
set to H on resume
stop historyarray<object>YesDrives the 3-counted-stops-per-60-s budget and whether new streams start stopped.
per (pid, sourceId); stops in the last 60 s, each flagged counted or not; discarded only when the participant leaves the call

VideoFrameHeader (requirements on 17) other

Requirements this document places on 17's video-dc/1 video frame header: fixed-length, identical in every fragment of a frame, used verbatim as SFrame metadata. The whole encoded frame is encrypted, then the SFrame ciphertext is fragmented. Per-fragment fields are outside the header and unauthenticated.

Specification
18 §8.3
Fields
NameTypeRequiredMeaning and constraints
pidintegerYesSender's pid.
sourceIdsourceIdYesSource.
genintegerYesStream generation.
low 12 bits of the main encryptor instance's joinNonce
frame numberintegerYesPer-stream frame number.
per stream
timestampintegerYesCapture timestamp (used by the freshness check).
90 kHz
keyframe indicationflagYesWhether the frame is a keyframe.
C flagflagYes1 = payload is an SFrame ciphertext.
meaning of 16 §4.4

VoiceDcFrameMessage (secure) binary-frame

A voice-dc/1 frame message (16 §4.3) in a secure call: octets 0-11 are the route header with the C flag set (used verbatim as SFrame metadata), octets 12- are the SFrame ciphertext of exactly one Opus packet.

Specification
18 §8.2
Fields
NameTypeRequiredMeaning and constraints
route headerbytesYesCleartext routing header; the SFrame metadata (authenticated).
octets 0-11; C flag = 1; defined by 16
SFrame ciphertextSFrameCiphertextYesEncrypted Opus packet.
octets 12 to end

Frame failure class enum

Specification
18 §4.5, §6.7
Values
ValueMeaning
invalidDropped silently before/without decryption for structural or KID reasons; not treated as loss by the jitter buffer (§4.5).
undecryptableTag failure, unknown epoch after hold, counter/freshness failure, or erased keys; treated as if never arrived, concealment covers it (§6.7).

media_attestation reason enum

Specification
18 §10.3
Values
ValueMeaning
invalidAttestation attributed to a stream whose signature doesn't verify; stops nothing.
mismatchplaying -> stopped caused by a frame hash differing from a valid attestation.
equivocationplaying -> stopped caused by two valid attestations with different hashes for one counter.
unattestedplaying -> stopped caused by the unattested limit, once counted, and only when at least the third counted stop in the call.

media_attestation route enum

Specification
18 §10.3
Values
ValueMeaning
relayFrames arrived via the relay.
sfuFrames arrived via the SFU.
otherServer-side storage value for an unknown route.

SFrame cipher suite enum

Specification
18 §3.1
Values
ValueMeaning
0x0004AES_128_GCM_SHA256_128; the only suite in sv1; no negotiation

SfuFrameMetadata codec enum

Specification
18 §8.4.2
Values
ValueMeaning
1Opus (source 2 only); clear prefix 0
2VP8; clear prefix 10 octets for a keyframe (bit 0 of first octet = 0), 3 otherwise
3VP9; clear prefix 0
0, 4-255Reserved

Stream playback state enum

Specification
18 §9.8
Values
ValueMeaning
playingFrames are rendered (subject to play floor).
stoppedFrames still decrypted, recorded and verified but never rendered.

19 Notifications and push

CollapseKey other

collapseKey = b64u(HMAC-SHA256(K_coll, "sv1 push collapse" || 0x00 || opaque(topic))[0..16]); topic = call:<callId> or rec:<record id>; K_coll is a 32-byte per-registration secret never disclosed; result 22 chars.

Specification
19 §10.3

CommunityNotificationSettings object

Per-community (hosting server) settings.

Specification
19 §7.2
Fields
NameTypeRequiredMeaning and constraints
hoststringYesCommunity server.
read-only; from path
levelenum LevelYesLevel.
default | mentions | nothing
muteUntiltimestamp | nullYesMute.
<= 366 days ahead
everyoneboolean | nullYesOverride.
null inherits
updatedAttimestampYesLast change.
read-only

ContextNotificationSettings object

Per-context settings keyed by (host, ctx).

Specification
19 §7.3
Fields
NameTypeRequiredMeaning and constraints
hoststringYesHosting server.
read-only; from query
ctxstringYesContext ref.
read-only; from path
levelenum LevelYesLevel.
default | all | mentions | nothing; all only dm:/gdm:
muteUntiltimestamp | nullYesMute.
<= 366 days ahead
everyoneboolean | nullYesOverride.
null inherits
callsboolean | nullYesOverride.
DMs only; MUST be null for channels
updatedAttimestampYesLast change.
read-only

EventTicket other

Opaque bearer credential issued by a hosting server in notify.event; only GET {host}/v1/me/notifications/events for the listed items; 72 h; reusable; <= 30 req/min; server stores SHA-256(ticket) with (recipient, ctx, seqs, expiry).

Specification
19 §4.7

EventTicketRef object

The ticket member of notify.event and NotificationRecord.

Specification
19 §4.7, §5.2
Fields
NameTypeRequiredMeaning and constraints
tokenstringYesBearer event ticket.
>= 128 random bits, base64url, <= 64 chars, MAY start with et_
expiresAttimestampYesExpiry.
72 h after issue

FetchToken other

Opaque bearer credential issued with a push registration; only GET /v1/me/notifications/{id} and POST /v1/me/notifications/read (ids) for that device. >= 128 random bits, base64url, <= 64 chars, optional pf_ prefix; expires 60 days after issue; server stores SHA-256.

Specification
19 §9.3

GatewayPushRequest object

Body of POST {gatewayUrl}/v1/push.

Specification
19 §11.3
Fields
NameTypeRequiredMeaning and constraints
pushesarray<PushRequest>YesPushes.
1-100; body <= 256 KiB

GatewayRegisterRequest object

Body of POST {gatewayUrl}/v1/register.

Specification
19 §11.2
Fields
NameTypeRequiredMeaning and constraints
platformenum GatewayPlatformYesPlatform.
apns | apns_voip | fcm
appIdstringYesApp id.
1-255 chars
environmentenum ApnsEnvironmentNoAPNs env.
apns/apns_voip only; production | development
tokenstringYesPlatform token.
<= 4,096 chars
homestringYesHome server.
canonical domain

NotificationEventPayload object

d of notification.created / notification.updated; reduced form {record: null, id, badge} for devices not in targets.

Specification
19 §16.1
Fields
NameTypeRequiredMeaning and constraints
recordNotificationRecord | nullYesRecord.
idstringNoRecord id.
reduced payload only
badgeintegerYesBadge.

NotificationFetchResponse object

Response of GET /v1/me/notifications/{id}.

Specification
19 §8.3
Fields
NameTypeRequiredMeaning and constraints
recordNotificationRecordYesRecord.
badgeintegerYesBadge.
displayobjectYesCurrent previews setting.
{previews}

NotificationRecord object

Home server's stored record of one notification; its id is the push payload h.

Specification
19 §8.1
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesRecord id (= h).
assigned by home server
kindenum NotificationKindYesKind.
unknown -> generic 'New notification'
stateenum RecordStateYesState.
unknown -> read
silentbooleanYesCreated without push/alerting.
hoststring | nullYesHosting server.
null for pairing_request, account_alert, test
hostApistring | nullYesHosting server base URL as resolved by home server.
null when host null
ctxstring | nullYesContext.
null when host null
ctxKindenum CtxKind | nullYesContext kind.
as §5.2
ctxNamestring | nullYesContext name.
as §5.2
ctxAddrstring | nullYesChannel address.
as §5.2
communityobject | nullYesCommunity.
as §5.2
securityenum Security | nullYesMode.
as §5.2
senderAddressRef | webhook Sender | nullYesSender.
itemsarray<NotifyItem>YesItems after processing.
empty for kinds without items
countintegerYesCount.
0 for kinds without items
otherSendersintegerYesOther senders.
0 for kinds without items
previewPreview | nullYesPreview.
after H6/H7; always null in secure contexts
ticketEventTicketRef | nullYesEvent ticket.
secure-context ticket only to enrolled devices; null after expiry
callRecordCall | nullYesCall state.
call_ring and call_missed
dmRequestobject | nullYesRequest.
{requestId}, dm_request
pairingobject | nullYesPairing.
{pairingId}, pairing_request
alertobject | nullYesAlert code.
{code}, account_alert; W4a in v1
targetsarray<string> | nullYesTargeted devices.
device IDs; null = all devices
eventAttimestampYesat of latest underlying event.
pushedAttimestamp | nullYesFirst push handed off.
createdAttimestampYesCreated.
updatedAttimestampYesUpdated.

NotificationSettings object

Global notification settings stored only at the home server.

Specification
19 §7.1
Fields
NameTypeRequiredMeaning and constraints
enabledbooleanYesMaster switch.
default true
previewsenum PreviewsYesDisplay level.
default full; unknown -> sender_only
channelsenum LevelYesChannel default.
default mentions; mentions | nothing
dmsenum LevelYes1:1 DM default.
default all; all | mentions | nothing
groupDmsenum LevelYesGroup DM default.
default all; all | mentions | nothing
everyonebooleanYesEveryone mentions notify.
default true
callsbooleanYesDM calls ring.
default true
versionintegerYesVersion.
read-only; +1 per change
updatedAttimestamp | nullYesLast change.
read-only

NotifiedEventsResponse object

Response of GET {host}/v1/me/notifications/events; items are event envelopes (00 §7.4) whose d is a Message (11 §5.2); in secure contexts carries sealed / edit.sealed and mention hint.

Specification
19 §8.6
Fields
NameTypeRequiredMeaning and constraints
ctxstringYesContext.
itemsarray<event envelope>YesEvents.
seq order; current form
readSeqintegerYesRecipient readSeq.

NotifyCall object

call member of notify.event: call_ring {callId, video, expiresAt}; call_ring_ended {callId, expiresAt, reason}.

Specification
19 §5.2
Fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesCall id.
videobooleanNoVideo call.
call_ring only
expiresAttimestampYesRing expiry.
the ring's RingTarget expiresAt (identifies the ring)
reasonenum RingEndReasonNoEnd reason.
call_ring_ended only; answered | declined | timeout | cancelled; unknown -> cancelled

NotifyEventPayload object

The d of a notify.event (see events). Serialized notify.event (whole S2S event) MUST NOT exceed 8 KiB; sender drops oldest items then shortens ctxName and community.name to 64 scalar values.

Specification
19 §5.2
Fields
NameTypeRequiredMeaning and constraints
recipientstringYesRecipient.
canonical address
kindenum NotificationKindYesKind.
hoststringYesHosting server.
= iss
ctxstringYesContext ref.
ctxKindenum CtxKindYesContext kind.
ch: channel, dm: direct, gdm: group
ctxNamestring | nullYesDisplay name.
<= 100 scalar values; null for 1:1 or unnamed group
ctxAddrstring | nullYesChannel address.
channel only
communityobject | nullYesCommunity.
{name: string}, channel only
securityenum SecurityYesMode.
unknown -> secure
senderAddressRef | webhook SenderYesSender.
except withdrawn; names checked per 01 §6.4
attimestampYesLatest trigger or ring start/end.
itemsarray<NotifyItem>NoItems.
message kinds; 1-20; unique mid
countintegerNoCount.
message kinds
otherSendersintegerNoOther senders.
message kinds
previewPreview | nullNoPreview.
absent == null; MUST be absent/null when secure
ticketEventTicketRefNoTicket.
message kinds
callNotifyCallNoCall.
call kinds
withdrawnarray<string>NoMids.
1-50
previewOnlybooleanNoPreview-only withdrawal.
default false

NotifyItem object

One trigger inside notify.event / NotificationRecord items.

Specification
19 §5.2
Fields
NameTypeRequiredMeaning and constraints
seqintegerYesTriggering event's seq.
midstringYesTriggering entry.
unique within items; edit entry mid for edit mentions
kindenum NotifyItemKindYesItem's own kind.
unknown -> dm_message
senderAddressRef | webhook SenderYesItem sender.
attimestampYesEvent timestamp.

PlatformMessage other

Gateway-built APNs body / FCM HTTP v1 message per push type (§10.2): alert -> aps alert loc-key (RECOMMENDED SV_NOTIFICATION), mutable-content 1, sound default, sv payload; call -> APNs voip {sv}; background -> content-available 1; FCM data-only {sv: payload string}, priority HIGH/NORMAL, ttl.

Specification
19 §10.2

Preview object

Insecure-context preview of the latest triggering message.

Specification
19 §4.8
Fields
NameTypeRequiredMeaning and constraints
textstringYesPreview text.
<= 140 Unicode scalar values; mention/channel tokens replaced by names; line breaks -> single spaces; truncated text ends with U+2026; empty text -> empty string
attachmentsintegerYesAttachment count.
>= 0

PushKey other

Gateway-private sealed form of a platform token bound to (platform, appId, environment, token, home), fresh nonce, key-id for rotation. RECOMMENDED: "pk1." || b64u(keyId(1) || nonce(12) || AES-256-GCM(K_gw[keyId], nonce, plaintext, aad="pk1")), plaintext = struct { uint8 platform; opaque appId<V>; uint8 environment; opaque token<V>; opaque home<V>; uint64 issuedAt; }.

Signed by
gateway secret K_gw (AEAD)
Specification
19 §11.2

PushPayload other

The opaque push payload {"v":1,"h":<record id>,"r":<registration id>}, serialized in exactly one form: no whitespace, members in order, always 93 octets.

Specification
19 §10.1
Fields
NameTypeRequiredMeaning and constraints
vintegerYesPayload version.
1
huuidv7YesNotificationRecord id.
lowercase hyphenated
ruuidv7YesPushRegistration id.
lowercase hyphenated

Also described in 00 §6 HP-9, §4.9.

PushRegistration object

A device's registration of one push channel at its home server.

Specification
19 §9.1
Fields
NameTypeRequiredMeaning and constraints
iduuidv7YesRegistration id (= r).
assigned by home server
didstringYesDevice.
read-only; calling device
transportenum TransportYesTransport.
gateway | webpush
typesarray<PushType>YesAccepted push types.
non-empty; webpush no background; apns_voip keys [call]; apns keys alert, background; fcm any
gatewayUrlstringNoGateway.
gateway only; normalized base URL no trailing slash
pushKeystringNoPush key.
gateway only; 1-1,024 unreserved chars
webPushWebPushSubscriptionNoSubscription.
webpush only
vapidKeystringNoapplicationServerKey.
webpush only
stateenum RegistrationStateYesHealth.
read-only; active | failing; unknown -> failing
lastDeliveredAttimestamp | nullYesLast accepted push.
read-only
lastErrorstring | nullYesLast error code.
read-only
createdAttimestampYesCreated.
read-only
updatedAttimestampYesUpdated.
read-only
fetchTokenstringNoFetch token.
only in responses that issue one; never from GET
fetchTokenExpiresAttimestampYesCurrent fetch token expiry.
read-only

PushRequest object

One push in a gateway batch.

Specification
19 §11.3
Fields
NameTypeRequiredMeaning and constraints
pushKeystringYesFrom registration.
typeenum PushTypeYesPush type.
unknown -> rejected push.type_unsupported
payloadPushPayloadYesPayload.
gateway checks serialized <= 256 octets, passes unchanged
ttlMsintegerYesLifetime.
0-86,400,000; 0 = now or never
urgencyenum UrgencyYesUrgency.
high | normal; unknown -> normal
collapseKeystringNoCollapse key.
1-64 base64url chars

PushResult object

Per-push result from the gateway.

Specification
19 §11.3
Fields
NameTypeRequiredMeaning and constraints
statusenum PushResultStatusYesOutcome.
accepted | gone | rejected | deferred; unknown -> deferred
errorproblem object (03 §10.1)NoError.
with gone, rejected; MAY with deferred
retryAfterMsintegerNoRetry hint.
with deferred

RecordCall object

call member of a NotificationRecord.

Specification
19 §8.1
Fields
NameTypeRequiredMeaning and constraints
callIduuidv7YesCall.
videobooleanYesVideo.
false when built from call_ring_ended
expiresAttimestampYesRing expiry.
stateenum RingStateYesRing state.
ringing | ended; unknown -> ended
endReasonenum RingEndReason | nullYesEnd reason.
null while ringing; unknown -> cancelled
endedAttimestamp | nullYesEnd time.
null while ringing

SharedStorageItems other

Non-key items in the app/extension shared storage: per account home base URL, registration IDs, fetch token (secret); handled record IDs (7 days); per-host discovery result; display-name cache; latest badge per account; secure pins and last-known-secure DMs (main app writes only); re-registration flag (extension writes).

Specification
19 §13.2

sv-push+jwt jws

Request-bound JWS a home server presents to a gateway. Header exactly {alg: EdDSA, typ: sv-push+jwt, kid: <home domain>#<keyId>}; serialized <= 4,096 octets; new token (new jti) per attempt.

Signed by
home server key of purpose sign (02)
Specification
19 §11.4
Fields
NameTypeRequiredMeaning and constraints
issstringYesIssuer.
home canonical domain; = kid domain part
audstringYesGateway base URL.
normalize(gatewayUrl) (06 §8.3); root gateway gives trailing /
htmstringYesMethod.
POST
htustringYesTarget URI.
normalize(gatewayUrl + /v1/push), never appended to aud
bhbase64urlYesBody hash.
SHA-256 of request content
iatintegerYesIssued at.
NumericDate
expintegerYesExpiry.
iat < exp <= iat + 60
jtibase64urlYesToken id.
>= 16 random octets; single use

VapidJwt jws

RFC 8292 VAPID JWT, ES256 with the private key of endpoints.push.webPushKey; aud = origin of endpoint; exp <= 12 h ahead; sub = home server base URL (https).

Signed by
webPushKey private key (ES256)
Specification
19 §12.2

WebPushMessage binary-frame

RFC 8291 aes128gcm encryption of the 93-octet payload: fresh ephemeral P-256 key and 16-octet salt, record size 4,096, one record; 196 octets (86 header + 93 payload + 1 delimiter + 16 tag).

Specification
19 §12.2

WebPushSubscription object

webPush member of a PushRegistration, from the browser's PushSubscription.

Specification
19 §9.1
Fields
NameTypeRequiredMeaning and constraints
endpointstring (https URL)YesPush service endpoint.
<= 2,048 octets; public unicast address check
p256dhbase64urlYesUA public key.
65-octet uncompressed P-256 point
authbase64urlYesAuth secret.
16 octets

ApnsEnvironment enum

Specification
19 §11.2
Values
ValueMeaning
production
developmentAPNs sandbox

CtxKind enum

Specification
19 §5.2
Values
ValueMeaning
channelch: prefix
directdm: prefix (1:1 DM)
groupgdm: prefix (group DM)

GatewayPlatform enum

Specification
19 §11.2, §11.5
Values
ValueMeaning
apnsAPNs alert and background (call delivered as alert)
apns_voipPushKit; only call
fcmAll three types

Level enum

Specification
19 §7.1-§7.3
Values
ValueMeaning
defaultInherit (community and context only)
allEvery message; DMs and group DMs only (global dms/groupDms, context dm:/gdm:)
mentionsOnly mentions; default for unknown stored values
nothingNo notifications

NotificationKind enum

Specification
19 §5.3
Values
ValueMeaning
mentionHosting server; in notify.event; record; alert; coalesced
replyHosting server, insecure contexts; alert; coalesced
mention_allHosting server; alert; coalesced
dm_messageHosting server, or home server for auto-accepted dm.request; alert; coalesced
call_ringHosting server (15); record; push type call (alert for device w/o call registration); not coalesced
call_ring_endedHosting server; no record of its own, updates call_ring and may create call_missed; background or alert
withdrawnHosting server; updates records; background
call_missedHome-local; alert
dm_requestHome-local (12 §8.4); alert
pairing_requestHome-local (08 §6); targeted at enrolled devices; alert
account_alertHome-local (07 §15.2); alert {code}, W4a in v1; alert
testHome-local (§9.4); one registration; alert

NotificationWindowState enum

Specification
19 §4.5
Values
ValueMeaning
idleNo window
openWithin 30 s window with pending list and deadline

NotifyEventValidationResult enum

Specification
19 §5.6
Values
ValueMeaning
acceptedV9
ignoredV4 unknown kind, V8 unknown recipient or legitimacy failure
rejectedV1-V3, V5-V7 with error code

NotifyItemKind (priority order) enum

Specification
19 §4.1, §4.5
Values
ValueMeaning
mentionhighest priority
reply
mention_all
dm_messagelowest; default for unknown

Previews enum

Specification
19 §7.1
Values
ValueMeaning
fullSender, context and message text (default)
sender_onlySender and context, never text; default for unknown
noneOnly New message / Incoming call

PushResultStatus enum

Specification
19 §11.3
Values
ValueMeaning
acceptedPlatform accepted; set lastDeliveredAt
gonepush.token_gone; delete registration
rejectedPermanent; counts toward failing
deferredTemporary; retry; default for unknown

PushType enum

Specification
19 §10.3
Values
ValueMeaning
alertVisible notification; urgency high; ttl 24 h
callRing (PushKit / high-priority); ttl until ring expiry, >= 1,000 ms
backgroundSilent sync; urgency normal; ttl 1 h; never Web Push

RecordState enum

Specification
19 §8.2
Values
ValueMeaning
unreadNot yet seen; counts toward badge unless silent
readOpened, read past, or subject resolved; unknown -> read
dismissedCleared from tray without opening
withdrawnAll referenced messages deleted/expired; terminal

RegistrationInvalidReason enum

Specification
19 §9.2
Values
ValueMeaning
transport
types
gateway_url
push_key
endpoint
keys

RegistrationRemovedReason enum

Specification
19 §9.4, §16.1
Values
ValueMeaning
gonePlatform says token invalid
rejected3 consecutive rejections, 7 days failing, no types left, or old VAPID key past 90 days
gateway_not_allowedlisted policy no longer includes the gateway

RegistrationState enum

Specification
19 §9.1
Values
ValueMeaning
active
failingAfter a rejected push; unknown -> failing

RingState enum

Specification
19 §8.1
Values
ValueMeaning
ringing
endeddefault for unknown

Security enum

Specification
19 §5.2
Values
ValueMeaning
insecureInsecure context
secureSecure context; unknown values treated as secure

SettingsOutcome enum

Specification
19 §6.2
Values
ValueMeaning
dropStore nothing
silentStore silent record, no push
notifyStore record and deliver

SettingsScope enum

Specification
19 §16.1
Values
ValueMeaning
global
community
context

Transport enum

Specification
19 §9.1
Values
ValueMeaning
gatewayAPNs/FCM via push gateway
webpushRFC 8030 Web Push (browsers, UnifiedPush)

Urgency enum

Specification
19 §11.3
Values
ValueMeaning
high
normaldefault for unknown at gateway

20 Client behaviour and user experience

CopyText other

Grammar for reference text with placeholders: copy-text = 1*( copy-literal / placeholder ); copy-literal = 1*( %x20-7A / %x7C / %x7E-10FFFF ); placeholder = "{" ph-name "}"; ph-name = LCALPHA *( LCALPHA / DIGIT / "_" ). Fields list the defined placeholders.

Specification
20 §1.4
Fields
NameTypeRequiredMeaning and constraints
{person}stringNoPerson reference: display name if it passes the receiver check, else prepared local part, plus bot badge for bots
§2.4; bidi-isolated
{personForm}stringNoThe person's display form (01 §6.6)
always with the domain
{person2}stringNoA second person reference (K8, §5)
§2.4
{people}stringNoA list of person references
formatted by §2.5
{channel}stringNoChannel display name
channel-kind glyph (§15.5) prefixed in visual text, nothing in spoken text
{context}stringNo{channel} for a channel, {person} for a 1:1 DM, or the group DM's name
{community}stringNoThe community's name (09), or its canonical domain if it has none
{domain}stringNoA canonical domain
displayed per 01 §4.3; each use says which server's; before discovery has a canonical domain, the domain as typed after domain preparation
{host}stringNoCanonical domain of the context's hosting server
{me}stringNoThe user's own display form
{address}stringNoA display form that isn't yet an account's (name being chosen, §9.3)
{local}stringNoThe user's own prepared local part (01)
{client}stringNoAn OAuth client's client_name (05 §5.4)
only on the server's 'Continue to …' page
{targetForm}stringNoDisplay form of the target a typed address or link resolves to (§15.6)
{device}stringNoA device's name from its device record or DeviceSummary (05, 08), e.g. 'Chrome · Windows'
fallback: platform label of §12.11
{provider}stringNoSign-in provider's display name from ServerMetadata auth.providers
{providerLabel}stringNoProvider account label from 05 (providerLabel, typically an e-mail)
shown only to the account's own user
{code}stringNoA 6-digit pairing code (08)
grouped form NNN NNN
{size}stringNoA byte size ('25 MB')
locale format, binary units
{instance}stringNoThe instance member of a problem object (RFC 9457)
when present
{origin}stringNoThe web client's own origin
HTML serialization, host displayed per 01 §4.3
{link}stringNoA share link or sloppyv URI generated by §10.4
{n}integerNoAn integer
locale-formatted; CLDR plural rules
{time}stringNoLocal time
locale format; each use names its source
{date}stringNoLocal date
locale format; each use names its source
{key}stringNoName of the user's push-to-talk control, e.g. 'Space' or 'Mouse 4'

DeviceLocalUiState other

Client state this document requires to be device-local (not in the AccountVault) (§2.7, §20.1). Field names other than afterBlock are descriptive, not wire names.

Specification
20 §2.7, §20.1
Fields
NameTypeRequiredMeaning and constraints
afterBlockboolean—Set when a moderator/server block or timeout forced a self-mute (PD-20-7); selects MI.after_moderator
cleared on unmute, call end, or mode change to ptt
rendered changeId setarray<string>—W2 changeIds whose system line this device already inserted
collapsed bannersobject—W3/W7 collapsed or expanded
per context
hints shownobject—Which one-time hints were shown
link intentLinkIntent—Pending link (§10.1)
24 h
Problem reportsProblemReportsSetting—Diagnostics consent (§17)
default failures
microphone modestring—vad / ptt / open_mic
default vad (PD-20-5)
W4 alerts raisedobject—W4a–W4d already raised (for W4d, the dids alerted)
device-local own-identity state (07 §18.4)
W1 device-local recordarray<string>—Communities W1 was shown for
memory only on shared-computer devices; merged into w1_seen on enrolment
Security activityarray<object>—This device's W4 events, newest first
kept 90 days
sent reports listarray<object>—'See what was sent' list of uploaded diagnostics
last 30 days

LinkIntent other

Device-local record stored when a link is opened by a user not signed in on this device; one at a time; expires after 24 h; resumes at §10.1 step 1 after sign-in or sign-up.

Specification
20 §10.1
Fields
NameTypeRequiredMeaning and constraints
targetstring—The canonical link target
canonical
inviteCodestring—The invite code from the link (fills inviteCode under registration: invite without asking)
timetimestamp—When the intent was stored
expires after 24 h

ShareLinkWebFragment other

PD-20-4: 'Continue in your browser' URL = links.web + '#sloppyv=' + the target sloppyv URI with every octet of its UTF-8 form percent-encoded except RFC 3986 unreserved characters. The web client decodes exactly once, treats it as a link opening (§10.1), and removes the fragment from the address bar without navigation.

Specification
20 §10.3, §21.6
Fields
NameTypeRequiredMeaning and constraints
sloppyvstringYesThe link target
percent-encoded sloppyv URI; decoded once

SurfaceLogLine other

One line of the surface log (PD-20-1) that Full and Web clients MUST be able to produce in test or debug builds: one line per surface shown, removed or changed. ABNF: log-line = mono-ms SP action SP surface-id [ SP ctx-ref ] LF. Never contains message content, keys or recovery words; never uploaded.

Specification
20 §2.6
Fields
NameTypeRequiredMeaning and constraints
mono-msstringYesMonotonic milliseconds since the log started
1*15DIGIT
actionSurfaceLogActionYesWhat happened to the surface; change = variant data changed without the ID changing
"show" / "change" / "remove"
surface-idstringYesSurface ID (§2.6, §20.2)
id-part ( "." id-part ); id-part = 1( ALPHA / DIGIT / "_" )
ctx-refstringNoA context reference (00 §7.6), 'call:' + call ID, 'pid=' + participant index, or 'me'
1*( %x21-7E )

W1SeenSetting object

The AccountVault settings record w1_seen (08 §8.6.4), owned by 20: canonical domains of communities for which W1 has been shown. Merge = set union, order of the version merged into, other version's new entries appended; entries past the record size limit dropped from the end.

Specification
20 §3.1.4, §20.1
Fields
NameTypeRequiredMeaning and constraints
valuearray<string>—Communities for which W1 has been shown
canonical domains, in order added, no duplicates, entries never removed; must fit the home server's maxVaultRecordBytes (08 §16) — once full, the device adds nothing more to the vault record and records further domains only device-locally

WebReleaseManifest object

Web release manifest at /sloppyv-release.json on the web client's origin (PD-20-6, SHOULD). The About screen shows the version and the SHA-256 of the manifest's exact bytes; that hash only identifies the release the origin claims to serve and is never called a verification.

Specification
20 §16.7
Fields
NameTypeRequiredMeaning and constraints
namestringYesProduct name
at most 64 characters
versionstringYesRelease version
at most 32 characters
sourcestringYesSource repository
https URL
revisionstringYesExact source revision
e.g. a 40-character Git commit ID
builderstringNoIdentifier of the build environment
e.g. a container image digest
filesobjectYesFile digests
keys are paths beginning with '/'; values 'sha384-' + standard base64 SHA-384 of the file, as in SRI; covers every file the origin serves for the release
createdAttimestampYesCreation time
RFC 3339

AddressInvalidReasonPresentation enum

Specification
20 §9.3
Values
ValueMeaning
empty“Type a name.”
too_long“That name is too long.”
too_short“That name is too short.”
disallowed_code_point, unstable, invalid_utf8“Names can only use letters, numbers and spaces.”
restricted_code_point“That character can't be used in names.”
unassigned“That character isn't supported yet. Updating the app may help.”
leading_mark“Names can't start with an accent.”
no_letter“Names need at least one letter.”
too_many_marks, repeated_mark, confusable_mark“That name has too many accents.”
mixed_script“Use letters from one alphabet.”
mixed_digits“Use one kind of digits.”
bidi_rule“That mix of right-to-left letters and numbers isn't allowed.”
contains_at“Type only your name, without @ and the server.”

AddressLookupAvailabilityPresentation enum

Specification
20 §9.3
Values
ValueMeaning
404, available: true“{address} is available” with a check mark
404, taken“That name is taken. …”
404, reserved“That name is reserved. Try another one.”
404, too_similar“That name looks too much like one that's already taken. Try another one.”
404, not_allowed with minChars“Names here need at least {n} letters or numbers.”
404, not_allowed otherwise“That name isn't allowed here. Try another one.”
410 address.deleted“That name was used recently and can't be taken yet.”
200 (exists)“That name is taken. …”
lookup failed (network, 5xx)“Can't check right now. You can still try.”

CallEndSurface enum

Specification
20 §11.8
Values
ValueMeaning
ST.call_end.endedcall.ended completed/context_closed/channel_deleted/unknown, empty (except voice-channel rejoin), relay.closing call_ended, call.not_active: “The call ended.”
ST.call_end.dmdm.closed, dm.encryption_pending: “This conversation can't take calls right now.”
ST.call_end.unansweredunanswered: “No answer.” + “Ring again”
ST.call_end.declineddeclined: “{person} declined the call.” (1:1) / “Nobody answered.” (group)
ST.call_end.downgradedsecurity_downgraded: “The call ended because {person} turned off encryption.”; no auto-rejoin
ST.call_end.movedcall.moved with sameCall true; relay.closing moved: “Your call moved to {device}.”
ST.call_end.moved_othercall.moved with sameCall false: “You joined another call on {device}.”
ST.call_end.elsewherecall.already_in_call (terminal): “You're in this call on {device}.” + “Move here”, or “You're in a call on {device}.”
ST.call_end.removedSeat removed with removed: “You were removed from the call.”
ST.call_end.revokedSeat removed with revoked: “This device was disconnected from the call.”
ST.call_end.start_freshLeft to start fresh: “You left the call to start fresh with new encryption keys.”
ST.call_end.encryption_offLeft to turn off encryption: “You left the call to turn off encryption.”
ST.call_end.forbiddencore.forbidden, core.not_found, call.rejoin_invalid, any other 4xx: “You can't rejoin this call.”
ST.call_end.gatesecurity.* during rejoin: G1/G2 in the call view
ST.call_end.w9W9 raised for the context: W9
ST.call_end.fullcall.full at first join: “This call is full.”

CallStatusSurface enum

Values
ValueMeaning
ST.call_reconnecting.00–15 s since drop: “Reconnecting…”
ST.call_reconnecting.1515–60 s: “Still reconnecting. Check your internet connection.”
ST.call_reconnecting.60After 60 s (fresh joins): “Trying to get you back into the call…”
ST.call_reestablishingFrom call.ended security_upgraded/group_restarted or relay.closing call_restarted until new call's first lease tick: “Setting up the call again…”
ST.ptt_unobservablePTT control unobservable: “Push-to-talk works only while this window is active.” (desktop) / “… while this tab is open and in front.” (web)
BADGE.reconnectingAnother participant still reconnecting 2,000 ms after the update: looping-arrows badge, 'Reconnecting…' on hover

CommunityModerationStatus enum

Specification
20 §14.4, §14.5
Values
ValueMeaning
ST.pending_approvalmember.pending: “Waiting for approval” + “Cancel request”
ST.invite_requiredcommunity.invite_required: “You need an invite to join this community.”
ST.closedcommunity.closed: “This community isn't taking new members.”
ST.rulescommunity.rules_acceptance_required: rules + “Agree and join”
ST.removedKick or ban: “You were removed from {community}.” / “You've been banned from {community}.”
ST.timed_out“You can't send messages until {time}.”
ST.new_membermoderation.new_member_restricted: “New members can do this after {n} minutes.”
ST.request_cardMessage request card; actions Accept, Decline, Block, Report and block
ST.group_removeRemove from group rules (owner, or ownerless group and active participant)
ST.report_disclosure10's disclosure lines
ST.insecure_bot“This bot can't join encrypted channels. Its owner needs to turn on encryption for it.”
ST.would_downgradesecurity.would_downgrade: “{people} hasn't/haven't turned on encryption, so they can't join this encrypted group.” + “Start a new group without encryption”
ST.downgrade_forbidden“Encrypted channels can't be switched back. To have an unencrypted channel, create a new one.”
ST.push_not_allowedgateway_not_allowed: “{domain} doesn't send notifications to this app. You'll see new messages when you open it.”
HELP.push_testTest push didn't arrive
ST.notification_settingsNotification settings copy (previews full/sender_only/none)
ST.mention_hintsMention-hints setting explanation
HELP.community_metadataCommunity metadata visible even when encrypted
HELP.secure_channel_creator“You'll need to turn on encryption to open this channel.”
ST.provider_down“{provider} sign-in isn't working right now. Try another way to sign in.”
ST.report_item.*10 §10.8 evidence labels, neutral

DiscoveryAndConnectionStatus enum

Specification
20 §14.2
Values
ValueMeaning
ST.server_not_founddiscovery.not_found, discovery.invalid_domain: “There's no Sloppy Voice server at {domain}. Check the spelling.”
ST.domain_not_serveddiscovery.domain_not_served: “{domain} doesn't host that address.”
ST.server_misconfigureddiscovery.record_invalid, delegation_conflict, metadata_invalid, canonical_mismatch, version_unsupported: “{domain} isn't set up correctly right now.” + contact link if contact.admin known
ST.server_unreachableEvery other discovery error incl. discovery.peer_suspended, discovery.forbidden_target: “{domain} can't be reached right now. We'll keep trying.”
ST.host_unreachableRemote channel host not answering: header “{domain} isn't responding. Your messages will be sent when it's back.”; message “Waiting for {domain}”
ST.host_unreachable.dmDM host not answering: “Waiting to send — the server for this chat isn't reachable right now. Your messages will send automatically.”
ST.home_unreachableHome server not answering; also identity key not named in IdentityState after self-started sign-in: “Your server ({domain}) isn't responding. You can keep chatting where you're already connected.”
ST.session_extensionfederation.extension_limit, federation.issuer_unreachable: “Can't confirm your account with {domain}. Reconnecting when it's back.”
ST.join_waiting_homefederation.home_unreachable / secure join refused while extended: “Waiting for your server ({domain}) before you can join. This will continue by itself.”
ST.federation_blockedfederation.blocked: “Your server doesn't connect with {domain}.”
ST.offline“You're offline. Messages will be sent when you're back online.”
ST.socket_reconnectingEvent WebSocket not ready > 5 s: “Reconnecting…”
ST.other_windowSocket replaced again within 60 s of a silent reconnect: “Sloppy Voice is open in another window.” + “Use this window”
ST.admin_peer_suspendedAdmin view of a suspended peer (02 §10.5)

GateErrorMapping enum

Specification
20 §4.1
Values
ValueMeaning
security.account_requireduserAction enable_encryption → G1
security.upgrade_required (remote server)enable_encryption → G1
security.upgrade_required (home server) or account state upgrade_requiredenable_encryption → blocking screen §4.4
security.device_not_enrolledset_up_device → G2
(no request) secure context known unopenableG1 or G2 directly without sending the request; G1 always wins over G2 for insecure accounts

HistoryShareErrorPresentation enum

Specification
20 §5.1
Values
ValueMeaning
history.share_forbidden reason recipient_not_in_group (after single retry)HSHARE.failed.not_ready: “{person} can't receive shared messages yet. Try again later.”
history.share_forbidden (other)HSHARE.failed.forbidden: “You can't share earlier messages here.”
history.share_range_invalidHSHARE.failed.range: “Some of these messages can't be shared. Try a shorter time.”
history.share_too_largeNever shown: client splits and retries
other history.*HSHARE.failed.other: “Couldn't share these messages. Try again later.”

HistoryShareRange enum

Specification
20 §5.1
Values
ValueMeaning
From the last dayPicker choice
From the last weekPicker choice
From the last monthPicker choice
Everything I can seePicker choice; from a message's menu the start is that message; range ends before recipient's visibleFromSeq / joinedSeq

InviteErrorPresentation enum

Specification
20 §10.2
Values
ValueMeaning
invite.not_found“This invite link doesn't work. Ask for a new one.”
invite.expired“This invite has expired. Ask for a new one.”
invite.used_up“This invite has been used up. Ask for a new one.”
invite.revoked“This invite was cancelled. Ask for a new one.”
410 on address lookup (ST.address_gone)“This address is no longer in use.”
domain/alias no longer resolves (ST.link_broken)“This link no longer works. Ask for a new one.”

JoinPreviewPrimaryAction enum

Specification
20 §10.2
Values
ValueMeaning
1Community closed: no action; ST.closed
2joinPolicy invite, no valid invite: no action; “You need an invite to join this community.”
3Secure target, insecure account: “Turn on encryption and join” (or “Turn on encryption and ask to join” with joinPolicy request)
4Secure channel target, secure account, unenrolled device: “Set up this device and join”
5joinPolicy request, no invite: “Ask to join”, then “Waiting for approval” + “Cancel request”
6Anything else: “Join” (“Open” for existing community member opening a channel link)

LockState enum

Specification
20 §8.1
Values
ValueMeaning
closedClosed lock, 'End-to-end encrypted'. SM-12 holds: advertised secure by hosting server, client's evaluation agrees, device group state member (13 §16); for a call also SFrame keys for the media epoch. Surface LOCK.closed
gatedOutline closed lock, 'Encrypted'. Secure context this account/device can't open (G1 or G2). Only in lists, previews, gate card; never next to content (PD-20-8). Surface LOCK.gated
pendingNo glyph, 'Joining…' or 'Setting up encryption…'. Secure, device may open it, SM-12 doesn't hold yet. Label only after 1 s when following closed. Surface LOCK.pending
openOpen lock, 'Not encrypted'. Insecure context, viewer's account secure. Surface LOCK.open
noneNothing shown. Insecure context, insecure viewer account. Surface LOCK.none
errorBroken lock, 'Encryption problem'. W9 active. Surface LOCK.error

MuteIndicatorSurface enum

Specification
20 §11.3
Values
ValueMeaning
MI.moderator1. B (audioBlockedBy) is muted_for_everyone or server_muted: button disabled, “Muted by a moderator”
MI.timeout2. B is timed_out: disabled, “Timed out until {time}”
MI.permission3. B is no_permission: disabled, “You can't talk in this channel”
MI.blocked4. B is other or unknown: disabled, “You can't talk here right now”
MI.after_moderator5. userMuted and afterBlock: “You can talk again. Tap to unmute.” (desktop 'Click to unmute')
MI.rejoin6. userMuted and muteReason = rejoin: “You were reconnected and muted. Tap to unmute.”
MI.interruption7. userMuted and muteReason = interruption: “Muted after another app used your microphone. Tap to unmute.”
MI.user8. userMuted, any other reason: “Muted”
MI.unmuted9. Otherwise: not muted, no text

NeverPromptEvent enum

Specification
20 §7.2
Values
ValueMeaning
NP-1MLS joins/leaves/epoch changes: only member list, K6 (own join), membership system lines, W6 (bot), W4b (own address)
NP-2Another user adds/removes a device: nothing
NP-3Another user's reset/downgrade in a channel: nothing
NP-4Media key rotation/epoch switches: only TI.*, SHARE.not_seen.keys, CAM.not_seen.keys while gate really closed
NP-5Route changes between relay and SFU (15 §7.3): nothing (a Connection details screen the user opens MAY show the route); TalkState stays transmitting while PTT is held and routeUp stays true
NP-6Reconnects/auto-rejoins: only TI., MI., ST.call_reconnecting., ST.call_reestablishing, ST.socket_reconnecting, ST.other_window, BADGE.reconnecting, SHARE., CAM., VIEW.
NP-7History restore / shared messages: only K4, K7, ST.history_unavailable
NP-8Vault/key-archive sync: no surface from the sync itself
NP-9KeyPackage publication: nothing
NP-10Bot key handling: no W6 on bot reset
NP-11Server key rotation: nothing
NP-12Silent credential-check failures in channels: diagnostic report only
NP-13MediaAttestation failures: stream stops, no surface or tile label
NP-14Discovery pin conflicts, delegation, federation renewals: only unreachable status lines
NP-15Item decryption failures, MLS blocked: only ST.*
NP-16Display name failing receiver check: local part shown, no surface
NP-17Pairing session ended elsewhere: remove M5.approver_prompt, nothing else
NP-18Someone joins/re-added to a secure context: no HSHARE., no K on others' devices

OnboardingState enum

Specification
20 §9.7
Values
ValueMeaning
server'Where is your account?' (ONB.server)
providerSign in with a provider (M1)
name'Choose your name' (M2), on signupRequired
device_setupDevice-setup chooser as full screen with 'Skip for now'
blocking_upgrade§4.4 'Turn on encryption to continue' / 'One more step'
homeHome screen or pending link intent

PlatformLabel enum

Specification
20 §12.11
Values
ValueMeaning
desktop“Computer”
web“Web browser”
ios“iPhone or iPad”
android“Android device”
bot“Bot”
unknown“Device”

ProblemReportsSetting enum

Specification
20 §17.1, §17.2
Values
ValueMeaning
off“Off” — “Don't send problem reports.” Nothing uploaded to /v1/diagnostics; queued reports discarded
failuresDefault (D-089). “Problems only (recommended)” — “Send a report when a call fails or keeps dropping, or an encryption check fails.”
full“Problems and call summaries” — “Also send a short summary after every call.”

SecuritySurfaceCatalogue enum

Values
ValueMeaning
W1Secure account entering an insecure community. Inline card 'This community isn't end-to-end encrypted'; once per community via w1_seen; never blocks (D-076)
W2.key_changedPinned DM contact's security key changed (pin changed). Non-blocking. Line + banner; 'Verify', 'OK'
W2.verifiedVerified contact's key changed (verified_blocked). Blocks sending in secure DMs; 'Accept new key', 'Verify'; no dismiss
W2.downgradedContact turned off encryption (downgraded). Non-blocking; 'OK'
W2.downgraded_verifiedVerified contact turned off encryption (downgraded_blocked). Blocks; 'Continue without encryption'
W2.new_accountAddress now belongs to a new account (D-086). 1:1 DM only, every device, secure or not; never blocks; no Verify; no bot wording
W3Insecure group DM with insecure participants, seen by secure viewer. Banner; 'Ask them to turn on encryption' (fills composer, never sends); 'Hide'
W4a.resetOwn encryption reset from another device. System alert; 'This wasn't me', 'Set up this device', 'Later'
W4a.downgradedEncryption turned off for own account. System alert; 'This wasn't me', 'It was me'
W4bSomeone else using your address (07 §18.2). System alert; once per (context, identity key, did) per device
W4cNew device added to your account. Notice fading after 10 s or navigation, whichever is later
W4dNew sign-in to your account (05 §12.12, D-084); also for insecure accounts; notice; never OS notification/sound/badge
W5.channelAdmin confirmation modal for channel encryption upgrade
W5.serverAdmin confirmation modal for server-wide upgrade; requires typing the domain (PD-20-3)
W6.channelSecure bot joined a secure channel (system line)
W6.groupSecure bot joined a secure group DM (system line)
W6.directSecure 1:1 DM with a bot starts (system line)
W7Insecure 1:1 DM: secure viewer, insecure peer; also encryption_pending. Banner, no action, 'Hide'
W8.badgeRecovery key not saved: dot on Settings and Encryption row, 'Not saved'
W8.banner'Save your recovery key' banner on home screen, at most once per 7 days per account
W9.channelSecure channel presented as insecure; blocks; no dismiss
W9.communitySecure community presented as insecure; blocks all channels
W9.groupPinned secure group DM presented as insecure (12 §11.1)
G1.channel / G1.community / G1.needs_encryption / G1.call / G1.dmGate card: turn on encryption (insecure account at a secure door); each with .other_origin suffix under §16.11
G2Gate card: set up encryption on this device (unenrolled device)
G2.other_originG2 on a web origin not allowed to hold this account's keys (§16.11)
K1–K8, K8.selfTimeline markers (see TimelineMarker)

ShareCameraViewerSurface enum

Specification
20 §11.10
Values
ValueMeaning
SHARE.active“You're sharing your screen” + “Stop sharing”, “Pause sharing”
SHARE.not_seen.reconnecting“Reconnecting — your screen isn't being seen” (held ≤ 30 s after drop, D-090)
SHARE.not_seen.keys“Securing the call — your screen isn't being seen”
SHARE.not_seen.interrupted“Your device paused screen capture — your screen isn't being seen”
SHARE.paused“Sharing paused” + “Resume”, “Stop sharing”
SHARE.stopped.reconnect“Screen sharing stopped while you were reconnecting.” + “Share again”; 10 s
SHARE.not_allowed.permission / .timeout / .other“You don't have permission to share here” / “You're timed out” / “You can't share here right now”
CAM.off.rejoin“Your camera was turned off when the call dropped. Tap to turn it on.”
CAM.onSelf-view or camera-on indicator, only while webcam frames are sent
CAM.not_seen.reconnecting / .keys / .interruptedAs SHARE variants with 'camera'
VIEW.loadingNeutral placeholder with spinner, no text
VIEW.heldLast picture with 'Picture delayed'; never 'Paused'
VIEW.blockedParticipant's avatar, no text

SignedOutLine enum

Specification
20 §9.8
Values
ValueMeaning
signed_outNo line
signed_out_elsewhere“This device was signed out from another device at {time}.” (+ “This wasn't me” if W4a not raised)
removed, lost_or_stolen“This device was removed from your account at {time}.” (+ “This wasn't me” if W4a not raised)
shared_expired, inactive“You were signed out because this device wasn't used for a while.”
account_deleted“This account was deleted.”
admin“Your server's administrator signed this device out.”
other“You were signed out.” (surface ID ST.signed_out.other)

SignupErrorPresentation enum

Specification
20 §9.1, §9.3
Values
ValueMeaning
address.taken“That name is taken. Try adding something, like a number or your last name.”
address.reserved“That name is reserved. Try another one.”
address.too_similar (data.field local)“That name looks too much like one that's already taken. Try another one.”
address.too_similar (data.field name, editors only)“That name looks too much like another name here. Try writing it differently.”
address.quarantined410 address.deleted row: “That name was used recently and can't be taken yet.”
address.not_allowed (reason too_short)“Names here need at least {n} letters or numbers.” ({n} = data.minChars)
address.not_allowed (blocked/other)“That name isn't allowed here. Try another one.”
address.invalid_local_partRow for its data.reason (see AddressInvalidReasonPresentation)
address.display_name_mismatch“Names can only use letters, numbers and spaces.”
auth.invite_required / auth.invite_invalidUnder invite field: “That invite code doesn't work. Check it or ask for a new one.”
auth.terms_not_acceptedFocus terms checkbox: “Tick this box to continue.”
auth.registration_closeddata.reason provider: “No account on {domain} uses this {provider} account ({providerLabel}).” + “Use a different sign-in” (prompt=select_account); server/unknown: “{domain} isn't taking new accounts right now.”
auth.signup_token_invalid“Sign-in took too long. Try again.”; restart login, keep typed name
auth.identity_already_linkedNo text; restart login (signs in to the created account)
network/5xx“Can't create your account right now. Try again.”
201 with account.name ≠ typed name“Your name will be shown as {local} for now. You can change how it's written in Settings.”

SurfaceIdPrefix enum

Specification
20 §2.6, §20.2
Values
ValueMeaning
W1–W9 (with variants)Warnings
G1.*, G2, G2.other_originGate cards (.other_origin suffix under §16.11)
K1–K8, K8.selfTimeline markers
LOCK.*Lock indicator states
TI.*, MI.*Talk and mute indicators
BADGE.reconnectingReconnecting badge on others' tiles
SHARE.*, CAM.*, VIEW.*Sharing, camera, viewer surfaces
ST.*Status lines
HELP.*Help texts
HINT.encrypt_peer, HINT.backup_signin, HINT.vad_first_call, HINT.muted_speakingOne-time hints
HSHARE.*Manual history sharing
M1.continue, M1.reauth, M4.progress, M4.save, M4.saved_confirm, M5.approver_prompt, M5.denied, M10Moment screens
SETUP.chooser, SETUP.pair_new, SETUP.pair_add, SETUP.pair_add.joined, SETUP.pair_add.confirm, SETUP.recovery, SETUP.verify, SETUP.bannerDevice setup screens
SECURITY.accountAccount security screen
ONB.<state>Onboarding screens

SurfaceKind enum

Specification
20 §2.2
Values
ValueMeaning
Modal dialogInterrupts; dismissed only through its buttons. W5, M10, downgrade confirmation, HSHARE.confirm
System alertInterrupts once; app-wide alert area; only its actions dismiss (M5 prompt also disappears when its pairing session ends). W4a, W4b, M5 approver prompt
NoticeInterrupts once; fades by itself. W4c, W4d
BannerPinned at top of one context below header. W2, W3, W7, W8, SETUP.banner
Inline cardNo interruption; not dismissable; action resolves it. W1, G1, G2, W9 error
System lineCentred non-message timeline line; no sender/avatar. K1–K8, W2 timeline line, W6
BadgeW8 settings badge
Passive stateLock indicator, talk and mute indicators, reconnecting badge, status lines

SurfaceLogAction enum

Specification
20 §2.6
Values
ValueMeaning
showSurface shown
changeShown surface's variant data changed without its ID changing (e.g. W3 naming one more person)
removeSurface removed

TalkIndicatorSurface enum

Specification
20 §11.2
Values
ValueMeaning
TI.transmitting(transmitting, —): “Talking”; filled mic in accent colour, animated ring — only state allowed this presentation
TI.not_heard.reconnecting(not_heard, reconnecting): “Reconnecting — you're not being heard”
TI.not_heard.connecting(not_heard, connecting): “Connecting — you're not being heard”
TI.not_heard.keys(not_heard, waiting_for_keys): “Securing the call — you're not being heard”
TI.not_heard.muted(not_heard, muted): “You're muted — you're not being heard” + “Unmute”
TI.not_heard.moderator(not_heard, not_allowed), blockedBy muted_for_everyone or server_muted: “Muted by a moderator — you're not being heard”
TI.not_heard.timeout(not_heard, not_allowed), blockedBy timed_out: “You're timed out — you're not being heard”
TI.not_heard.permission(not_heard, not_allowed), blockedBy no_permission: “You can't talk in this channel — you're not being heard”
TI.not_heard.other(not_heard, not_allowed), blockedBy other/unknown/absent: “You can't talk here right now — you're not being heard”
TI.not_heard.mic(not_heard, no_microphone): “Your microphone isn't working — you're not being heard” + “Check microphone”
TI.not_heardUnknown state or reason: “You're not being heard”
TI.idle(idle, null): ptt “Hold {key} to talk” / “Hold to talk”; vad or open_mic no text
TI.idle.listening(idle, not_allowed): “Listening only” + reason
TI.idle.connecting(idle, connecting): “Connecting…”
TI.idle.reconnecting(idle, reconnecting): “Reconnecting…”
TI.muted(muted, any): no talk text; mute indicator explains
(off)No indicator

TimelineContentStatus enum

Specification
20 §14.3
Values
ValueMeaning
ST.history_unavailableItems unavailable or keys not arrived after 10 min: “Earlier messages aren't available on this device.”
ST.message_invalidItem invalid: “This message can't be shown.”
ST.message_pendingpending_key / pending_sender: placeholder “Loading…”
ST.file_failed“This file couldn't be opened.” + “Try again”
ST.file_too_largeOver maxAttachmentBytes: “This file is too large. Files here can be up to {size}.”
ST.not_sentOutbox failed: “Not sent” + “Retry”, “Delete” + 11 §13.5 reason
ST.waiting.serverwaiting_for_server: uses ST.host_unreachable(.dm)
ST.waiting.keyswaiting_for_keys: “Getting encryption ready…”
ST.waiting.actionwaiting_for_action: “Will send when you're ready”
ST.deleted_by_mod“Message removed by a moderator”
ST.edited“(edited)”
ST.deleted_accountAuthor shown as “Deleted account”, address hidden
ST.group_fullmls.group_full: “This channel is full. Try again later.” / “This group is full. Try again later.”
ST.context_unavailableMLS blocked: “Can't connect to this chat right now. We'll keep trying.”; composer disabled
ST.dm_setting_upDM upgrading: “Setting up encryption…”
ST.dm_waiting_readdAwaiting re-add after own reset: “Waiting for {person}'s app to come online to continue this encrypted chat.”
ST.dm_paused1:1 DM closed reason banned: “This conversation is read-only for now.”
ST.retention“Messages here are deleted after {n} days. People in the channel can still keep copies.”

TimelineMarker enum

Specification
20 §5
Values
ValueMeaning
K1“Messages from here on are end-to-end encrypted.” Closed lock; at channel.security_changed (upgradeSeq + 1) or dm.security_changed to secure
K2“Messages from here on aren't end-to-end encrypted.” Open lock; at dm.security_changed to insecure (1:1 only) and start of an insecure successor after K5
K3“Sent before encryption was turned on.” Open lock; above earliest pre-upgrade message in an upgraded channel, sticky while any seq ≤ upgradeSeq is on screen; not shown if pre-upgrade history deleted
K4“Loading earlier messages…” Spinner; while keys for served items still arrive (own new device archive, shared messages); never blocks; never for own join
K5“This conversation moved.” Arrow; at dm.closed reason host_secure between closed DM and successor
K6“Earlier messages are end-to-end encrypted and aren't available to people who join later.” Closed lock; before item at MessagePage withheldBeforeSeq when non-null; plain statement, not a warning
K7“{person} shared earlier messages with you.” History icon; above earliest shared message, one per share
K8“{person} shared earlier messages with {person2}.” At the seq of history.shared for every member except the recipient
K8.self“You shared earlier messages with {person2}.” On the sharer's own devices

Also described in 00 §4.12.3.

UserActionPresentation enum

Specification
20 §14.1
Values
ValueMeaning
noneAction's own failure text, else “That didn't work.”
retry“That didn't work.” + “Try again”
waitAfter 2 s: “Waiting for {domain}…”
sign_inAfter silent recovery fails: sign-in screen titled “Sign in again to {domain}”
enable_encryptionG1
set_up_deviceG2
update_appFull screen “Update Sloppy Voice” / “{domain} needs a newer version of this app.” / “Update”
contact_admin“Only the people who run {domain} can fix this.” + ServerMetadata contact link + “Reference: {instance}”

UxMoment enum

Specification
20 §6
Values
ValueMeaning
M1OAuth consent (§9.2)
M2Choosing an address (§9.3)
M3OS permission prompts (§6.1)
M4Turning on encryption and saving the recovery key (§9.5)
M5Approving a new device (§12.3, §12.4)
M6A contact's key changed — W2 (§3.2)
M7Secure account entering insecure community — W1 (§3.1)
M8Insecure account at a secure door — G1 (§4.2)
M9Admin upgrading a channel or server — W5 (§3.5)
M10Every device and the recovery key lost — 'Start fresh' (§12.8)
M11Waiting for history on own new device or for shared messages — K4 (§5)

Also described in 00 §4.12.4.

WebHardeningRequirement enum

Specification
20 §16.1
Values
ValueMeaning
WH-1MUST: strict CSP of §16.2 on every HTML document and every script and worker response
WH-2MUST: no inline script, no eval, no third-party script origins
WH-3MUST: SRI on every script/stylesheet loaded by markup; integrity-checked dedicated worker loading
WH-4MUST (except where SHOULD): response headers of §16.3
WH-5SHOULD separate origin from API base URL; MUST separate from user-content origins
WH-6SHOULD: reproducible builds and release manifest
WH-7MUST: no third-party analytics, advertising, fonts, CDNs or error reporting
WH-8MUST: Trusted Types enforced; content never rendered as HTML
WH-9MUST: service worker restrictions of §16.6
WH-10MUST: identity and vault keys only on an origin allowed by §16.11

21 Deployment and operations

CallControlMetrics other

RECOMMENDED metric names for call control, plus federation and key metrics.

Specification
21 §6.12
Fields
NameTypeRequiredMeaning and constraints
sv_callctl_snapshot_interval_secondshistogramNoGap between consecutive snapshots of one call.
MUST stay within 0.9–1.1 s (15 §4.3)
sv_callctl_revocation_push_secondshistogramNoFrom a list-changing decision to writing the snapshot to the link.
SHOULD be <= 0.1 s, MUST be <= 0.5 s
sv_callctl_snapshot_ack_secondshistogramNoFrom sending a snapshot to its ack.
sv_callctl_relay_failovers_totalcounterNoFailovers of §6.9.3.
sv_callctl_relay_unavailable_totalcounterNoJoins refused with call.relay_unavailable.
sv_callctl_callsgaugeNoActive calls.
by state
sv_callctl_seatsgaugeNoActive seats.
by state
sv_fed_queue_depthgaugeNoFederation queue depth.
labels: lane
sv_fed_oldest_event_age_secondsgaugeNoOldest queued federation event age.
labels: lane
sv_fed_revocation_fanout_secondshistogramNoRevocation fan-out time.
against the 10 s target of 06 §11.3
sv_fed_peers_suspendedgaugeNoSuspended peers.
sv_keys_active_expiry_secondsgaugeNoTime to the active key's exp; alert with the key-expiry rule of §9.2.
labels: purpose

CallStatsEntry object

Entry of relayctl.call_stats calls.

Specification
21 §6.5.4
Fields
NameTypeRequiredMeaning and constraints
callIdstringYesThe call.
videoPairsintegerYesNumber of (viewer, source) pairs for sources 1 and 3 the relay currently serves (17 §8.2).
videoPairsDegradedintegerYesHow many of them are in a viewer state other than normal.

RelayCapacity object

capacity member of relayctl.hello: what the operator configured the node to carry.

Specification
21 §6.4.1
Fields
NameTypeRequiredMeaning and constraints
maxSessionsintegerYesMaximum sessions.
>= 1
maxEgressKbpsintegerYesMaximum egress bandwidth.
>= 1

RelayControlMessage object

Frame of the sloppyv-relay-control.v1 binding: one UTF-8 text WebSocket frame holding one I-JSON object of at most 1 MiB. Receivers ignore unknown members and messages of unknown t; binary frames are a protocol error (close 1003).

Specification
21 §6.2.3
Fields
NameTypeRequiredMeaning and constraints
vintegerYesBinding frame version.
1; any other value -> close 4026
tstringYesMessage type.
relayctl.* type from §6.3
iduuidv7YesID of this message.
00 §7.6
restringNoOn replies: the id being answered.
tstimestampYesSender's clock at sending. Informative; no rule depends on it.
RFC 3339 with milliseconds
dobjectYesPayload, defined in §6.4 and §6.5.

RelayCredential other

Secret a relay node presents (Authorization: Bearer) to open a control link. Random value of at least 128 bits, base64url (ABNF credential = 22*86( ALPHA / DIGIT / "-" / "_" )), issued by the operator for one (relay node, issuer) pair. Call control stores only a SHA-256 hash, compares in constant time, and MUST accept at least two credentials per relay node at a time for rotation.

RelayMetrics other

RECOMMENDED OpenMetrics names a relay SHOULD export. Labels MUST NOT include addresses, device IDs, pids, callIds, IP addresses or anything identifying a person; issuer and the enumerated reason, result and channel labels are allowed.

Specification
21 §6.12
Fields
NameTypeRequiredMeaning and constraints
sv_relay_sessionsgaugeNoOpen sessions.
labels: issuer
sv_relay_callsgaugeNoOpen calls.
labels: issuer
sv_relay_connect_totalcounterNo/connect outcomes.
labels: issuer, result (ok, ticket_invalid, ticket_expired, ticket_replayed, wrong_relay, call_unknown, bad_offer, overloaded)
sv_relay_forwarded_totalcounterNoMessages forwarded, per recipient.
labels: channel (audio, video, control)
sv_relay_dropped_totalcounterNoMessages dropped.
labels: reason (not_covered, snapshot_stale, pid_mismatch, mode_mismatch, malformed, inbound_cap, queue_full, too_late, video_congestion, video_need_key, video_expired)
sv_relay_ingress_bytes_totalcounterNoPayload bytes in.
sv_relay_egress_bytes_totalcounterNoPayload bytes out.
sv_relay_tick_delay_secondshistogramNoFrom snapshot receipt to call.tick written to the last session.
15 §4.4 asks for <= 50 ms
sv_relay_calls_stalegaugeNoCalls whose newest snapshot is 3 s old or more.
labels: issuer
sv_relay_session_down_totalcounterNoSession-down reports.
labels: reason (§6.5.2 reasons)
sv_relay_control_link_upgaugeNo1 when the link is linked.
labels: issuer

SecurityJournal other

Append-only record kept outside the main database with at least the durability and separation of the server keys (write-once object store, append-only file on the key-service host, or the key service). Each append MUST be durable before the server acknowledges the change or sends any event about it. MUST hold: server and channel security upgrades with securedAt and upgradeSeq; every IdentityState signed whose content changed (as the signed JWS, with its DeviceCertificates, ver and igen); account deletions and account-state changes; the MLS group-generation high-water mark of every context; the server key state of §8.1 item 3 unless the key service holds it. SHOULD hold bans, federation blocks and policy changes, and admin role grants/removals. Kept at least as long as the oldest restorable backup; never holds content.

Specification
21 §11.6.1

SnapshotAck object

Entry of relayctl.ack acks. A snapshot counts as acknowledged when an ack has result applied and seq >= the snapshot's seq, or stale with heldSeq >= it.

Specification
21 §6.4.4, §6.6
Fields
NameTypeRequiredMeaning and constraints
callIdstringYesThe call.
seqintegerYesseq of the snapshot processed.
resultSnapshotAckResultYesProcessing result.
applied | stale | unknown_call | invalid; unknown treated as invalid by call control
heldSeqinteger|nullYesseq of the snapshot the relay holds after processing.
null if the relay holds no snapshot

CallCloseReason enum

Specification
21 §6.4.7
Values
ValueMeaning
endedCall ended for a terminal reason (any but security_upgraded, group_restarted, server_restart); relay sends relay.closing call_ended.
restartedCall ended with security_upgraded or group_restarted and a new call replaces it; relay sends relay.closing call_restarted.
migratedCall now lives on another relay; relay sends relay.closing drain, retryAfterMs 0.
lostCall control lost state and ended it with server_restart; relay sends relay.closing timeout.
unknownCall control has no record (after resync); relay sends relay.closing timeout. Unknown reasons are treated as unknown.

DeploymentProfile enum

Specification
21 §3
Values
ValueMeaning
SOne self-hosted binary (family, club, small community).
MScaled multi-node (tens of thousands of accounts, several regions).
EEdge/CDN deployment (one option, e.g. Cloudflare), relay still on ordinary compute.
HHosting provider with many tenant servers.

FederationLane enum

Specification
21 §4.8
Values
ValueMeaning
highRevocations, deletions, call rings.
normalEverything else.

RelayControlCloseCode enum

Specification
21 §6.2.4
Values
ValueMeaning
1000Normal close (call control stopping the link cleanly); relay reconnects with the §6.8 schedule.
1001Going away (shutdown or drain finished); reconnect with the §6.8 schedule.
1003Binary frame received; log the bug; reconnect with the §6.8 schedule.
4001Authentication failed after the handshake (credential revoked); stop retrying; alert the operator.
4003Forbidden (URLs not allowed, relay disabled, wrong or duplicate issuer); stop retrying; alert the operator.
4008Heartbeat or handshake timeout; reconnect at once, then with the §6.8 schedule.
4009Replaced by a newer link from the same relayId; don't reconnect this link.
4026Unsupported binding version; stop retrying; alert the operator.

RelayLinkStateControlSide enum

Specification
21 §6.8
Values
ValueMeaning
linkedLink up; -> suspect on socket close/reset, no pong for 3,000 ms, no write accepted for 3,000 ms, or no keys_ack within 2,000 ms.
suspectNo new calls assigned; relink within 1,000 ms of t0 -> resynchronise and linked; else fail over every call -> failed.
failedCalls failed over; on relink, resynchronise with call_close (migrated) for every moved call -> linked.

RelayLinkStateRelaySide enum

Specification
21 §6.8
Values
ValueMeaning
connectingHandshaking or retrying; -> linked on welcome.
linkedLink up; -> lost after 3,000 ms without a message from control or on socket close.
lostKeeps sessions and calls of the issuer, retries; after 30 s closes every session of the issuer's calls without relay.closing and frees the calls.

RelayProfile enum

Specification
21 §6.4.3
Values
ValueMeaning
voice-dc/1Voice over data channels (16).
video-dc/1Video over data channels through the relay (17).

RelaySessionCloseReason enum

Values
ValueMeaning
leftrelay.closing reason (15 §6.6); e.g. sent when a participant leaves (21 §6.13).
removedrelay.closing reason (15 §6.6).
revokedrelay.closing reason (15 §6.6); also sent by call control when relayctl.session_up doesn't match a seat (§6.5.1).
movedrelay.closing reason (15 §6.6); used for Move voice here (RC-5).
switchedrelay.closing reason (15 §6.6).
call_endedrelay.closing reason (15 §6.6); what the relay sends for call_close reason ended. Terminal: clients leave for good (§6.4.7).
call_restartedUsed for the seat removals of a call that ended with security_upgraded or group_restarted (§6.4.5); also sent for call_close reason restarted.
session_expiredrelay.closing reason (15 §6.6).
drainSent with retryAfterMs 0 for relayctl.call_drain, call_close reason migrated, and sessions closed after a key revocation (§6.4.6, §6.4.7, §6.7 rule 4).
timeoutSent for call_close reasons lost and unknown; not terminal (§6.4.7).
overloadedrelay.closing reason (15 §6.6).

RelayState enum

Specification
21 §6.5.3
Values
ValueMeaning
acceptingMay receive new calls.
fullKeep existing calls, assign no new ones. Unknown values are treated as full.
drainingMigrate existing calls away (§6.9).

SessionDownReason enum

Specification
21 §6.5.2
Values
ValueMeaning
client_gone10 s without any packet from the client (15 §6.7 rule 3); seat -> reconnecting.
transport_closedICE failed, or DTLS/SCTP closed; seat -> reconnecting. Unknown reasons treated as this.
overloadedRelay shed the session under load; seat -> reconnecting; consider the relay full.
relay_shutdownRelay stopping without a drain; seat -> reconnecting.
drain_deadlineClosed at the call_drain deadline; seat -> reconnecting unless already moved.
key_revokedTicket signed by a since-revoked key (§6.7 rule 4); migration-window rule of §6.9.3.
replacedA newer session for the same (callId, pid) replaced this one; no seat change.
instructedAfter relayctl.session_close; no action.

SnapshotAckResult enum

Specification
21 §6.4.4
Values
ValueMeaning
appliedSnapshot applied and emitted as call.tick.
staleseq <= held seq and the held snapshot was received less than 3,000 ms ago; ignored.
unknown_callCall not open on this link; call control sends call_open and the newest snapshot.
invalidBreaks 15 §4.2 rules; relay keeps its current snapshot; call control records an error and resends the newest snapshot with a higher seq. Unknown results are treated as invalid.

22 Security considerations and threat model

MetadataExposureRow other

Documentation record (not a wire object): one row MX-n of the §7.1 metadata exposure table for secure contexts.

Specification
22 §7.1
Fields
NameTypeRequiredMeaning and constraints
#stringYesRow ID
MX-1..MX-29, MX-31..MX-38
ItemstringYesMetadata item
Hosting serverMetadataObserverMarkYesVisibility to hosting server
Y | P | –
Home server (of the user)MetadataObserverMarkYesVisibility to the user's home server
Y | P | –
Relay / SFUMetadataObserverMarkYesVisibility to media plane
Y | P | –
Push gateway and providerMetadataObserverMarkYesVisibility to push
Y | P | –
MembersMetadataObserverMarkYesVisibility to other members of the context
Y | P | –
NetworkMetadataObserverMarkYesVisibility to ADV-NET
Y | P | –
PublicMetadataObserverMarkYesVisibility to anyone without an account
Y | P | –
Mitigation and notesstringYesMitigations
OwnerstringYesOwning documents
doc numbers

ResidualRiskEntry other

Documentation record (not a wire object): one row of the §8.2 residual-risk register. Other documents cite it by RR-n ID; it is the only place a risk is 'accepted' (PD-22-3).

Specification
22 §8.2
Fields
NameTypeRequiredMeaning and constraints
IDstringYesStable risk ID
RR-n; stable and never reused (§8.2). The register lists RR-1 to RR-4 and RR-7 to RR-55; RR-35 is marked Withdrawn
Risk, stated plainlystringYesPlain-language statement of the risk
Exploited bystringYesAdversary or adversary combination
ADV-* IDs or a plain party
ModesstringYesModes affected
Insecure / Secure channel / Secure DM / Calls / All etc.
Status and sourceRegisterStatusYesAcceptance status and where it was accepted
Accepted (owner) | Accepted (D-nnn) | Accepted (document §) | Open | Withdrawn
MitigationsstringYesWhat reduces the risk
OwnersstringYesDocuments that own the mechanisms
document numbers

SecurityChecklistItem other

Documentation record (not a wire object): one item of the §13 implementer checklist. Restates a requirement of its owning document; the force is that of the owning document, which governs.

Specification
22 §13
Fields
NameTypeRequiredMeaning and constraints
IDstringYesStable checklist ID
SC-A1..A11, SC-S1..S15, SC-S20..S46, SC-M1..M3, SC-M5..M7, SC-C1..C34, SC-W1..W5, SC-B1, SC-P1, SC-O1..O8
RequirementstringYesRestated requirement
Applies tostringNoWhich implementations it applies to
conformance classes of 00 §1.5; present only in §13.1 and §13.7 tables
Normative sourcestringYesOwning sections
doc § references

AdversaryId enum

Specification
22 §4.1
Values
ValueMeaning
ADV-NETNetwork attacker: reads, drops, delays, replays, injects packets; can't break TLS 1.2+, DTLS or 04 primitives
ADV-DNSDNS attacker: controls DNS answers a verifier sees; can't forge DNSSEC
ADV-REGDomain registration holder: controls a server domain's registration, DNS (incl. DNSSEC) and gets legitimate certificates
ADV-HOMEMalicious or compromised home server for its own accounts
ADV-HOSTMalicious or compromised hosting server for contexts it hosts (sequencing, storage, MLS DS and channel AS, call control, moderation, relays, SFU)
ADV-MEDIAMalicious relay or SFU: controls the media plane, may forge lease ticks, holds no MLS secrets
ADV-PUSHPush gateway or push provider: sees, drops, delays, replays pushes; knows installations and timing
ADV-OIDCOIDC provider takeover: can pass a login, and so fresh authentication, as the victim
ADV-DEVStolen or lost device with stored tokens and keys, subject to platform protection at rest
ADV-TOKToken thief: holds bearer credentials (AS-9) but not the device, keys or provider login
ADV-MEMMalicious member of a context with a conforming or modified client
ADV-BOTMalicious bot operator: holds the bot token and, for a secure bot, its keys
ADV-WEBCompromised web origin: can serve any code from the origin serving a web client
ADV-PEERMalicious federation peer: any other server
ADV-QCFuture quantum attacker: records now, later breaks X25519 and Ed25519

AnalysedMode enum

Specification
22 §2.2
Values
ValueMeaning
InsecureAny insecure context: insecure channels, insecure 1:1 DMs and group DMs, and their calls. Confidentiality rests on TLS and DTLS hop by hop (D-021). Owners 00 §5.1, 11, 12
Secure channelA secure channel on any server, including every channel of a secure server. MLS group, SealedMessage, server-validated identity (D-035). Owners 09, 13, 14
Secure DMA secure 1:1 DM or secure group DM. MLS group with sv_participants, SealedMessage, client-validated identity with pins (D-036, HP-2). Owners 12, 13, 14, 07
CallsCalls in any context; a call has the mode of its context (SM-11). Insecure: DTLS only. Secure: SFrame keyed from MLS plus MediaAttestation (D-041 to D-043). Routes: the hosting server's relay and SFU, in every context (D-094). Owners 15 to 18

AssetId enum

Specification
22 §3.1
Values
ValueMeaning
AS-1Message content: text, formatting, edits, reaction values, replies
AS-2Attachments and their names
AS-3Live media: voice, screen video, screen and application sound, webcam
AS-4History keys K_hist(e), the key archive, and per-message keys in manual history shares
AS-5The identity key
AS-6DSKs (one per device, never exported)
AS-7Vault keys and the AccountVault
AS-8Recovery phrase and KeyBackup
AS-9Session credentials: access and refresh tokens, remote session tokens, bot tokens, fetch tokens, event tickets, rejoin tokens, RelayTickets
AS-10Linked provider logins
AS-11Server keys (sign, mls-external-sender), relay-control credentials, VAPID keys
AS-12Membership and identity bindings: rosters, sv_participants, pins, verification state
AS-13Metadata: who talks to whom, when, how much, from where
AS-14IP addresses: seen by every server, relay and SFU a client connects to; never by other clients (D-094)
AS-15Availability
AS-16The secure state of contexts
AS-17Push tokens and push keys

ConsistencyFinding enum

Specification
22 §14.1
Values
ValueMeaning
X-1Partly resolved; open: make S2 a MUST (OQ-22-2). Hosting-server fabrication of another server's user detected only by diagnostics
X-2Resolved: relay+member media injection bound stated consistently
X-3Resolved by D-082: revoked device reads nothing new only if removed as lost/stolen
X-4Resolved: audiences include community-list servers
X-5Resolved (revised D-007): re-added DM participant gets nothing pre-re-add
X-6Resolved: SM-4 records event tickets and needs_encryption pre-upgrade reads as exceptions
X-7Open (Lead): 00 §4.7 Matrix E says only participants hear secure channel calls; every member can (RR-44)
X-8Resolved (revised D-007)
X-9Resolved by D-085: turning on encryption needs provider sign-in within 24 h
X-10Resolved (revised D-007): since_join removed
X-11Open (Lead): 00 HP-5 should say 'on honest paths' for lease-based cut-off (RR-12)
X-12Resolved: MediaAttestations travel on every relay connection, with the attestations of SFU-routed sources on the relay (18 §9.6, D-080)
X-13Resolved: W4b covers channel, DM, group DM rosters and unlisted devices
X-14Resolved: gated outline lock for insecure accounts
X-15Resolved by D-081: same-site evidence restricted
X-16Resolved: 05 transaction cookie authorizes nothing
X-17Resolved: HP-9 uses 12 §4.3, dm.encryption_pending
X-18Open (Lead): 07 §22.12 clock warning vs 04/20
X-19Resolved by D-086: account incarnation inc
X-20Open (Lead): 07 should keep previously accepted keys per pin (RR-37)
X-21Open (Lead): after lossy restore, devices should re-register/re-upload when they see older igen/KeyBackup/vault generation
X-22Partly resolved; open (Lead): 00 §5.2 Home server 'Can never' cell wording
X-23Open (Lead): 00 HP-8 canonicalize() lacks the resolve-back check (PD-02-3)
X-24Resolved: token may follow a move the client's own pin accepts
X-25Resolved by D-079: OAuth form bodies are the only non-JSON bodies besides attachments and consent form

DetectionKind enum

Specification
22 §1.4
Values
ValueMeaning
user-visible detectionOne of the surfaces of 00 §4.12
silent detectionA client stops showing or playing something without a warning (D-043)
diagnostic detectionA report to servers, never shown to the user (D-035)

ForbiddenClaim enum

Specification
22 §12.3
Values
ValueMeaning
NC-1'The server can't see who you talk to' or 'can't see when you talk' (§7)
NC-2An insecure (unlocked) context is private from its server, or 'not encrypted' only means 'not encrypted between devices' (RR-3)
NC-3A channel lock protects against the community's server or a member's home server (RR-2)
NC-4Members are told when another member's identity changes in a channel (D-035)
NC-5Messages are deniable, or 'can't be used as proof' (RR-22, PD-22-1)
NC-6Deleting removes a message from everyone's devices, or retention guarantees erasure (RR-27, RR-26)
NC-7An encrypted channel or group chat is protected if a member's device is later compromised; or a later joiner can never see earlier messages (RR-7, RR-55; D-007)
NC-8'Delete messages sent before encryption' removes them from server backups (RR-46)
NC-9The web app is as safe as the native app, or the release manifest hash on About verifies the running code (RR-4, 20 §16.7)
NC-10The server that hosts a call can't see who is in it, who speaks when, or the participants' internet addresses (§7 MX-24, MX-25, MX-29; D-094)
NC-11Bots in encrypted contexts can't read messages (D-061, W6)
NC-12Reported encrypted messages stay encrypted (D-077)
NC-13A verified contact can never be impersonated, or verification protects channels (07 §16)
NC-14Sloppy Voice is anonymous (§9.3)
NC-15Encrypted calls are protected against eavesdropping by every member, or only people visibly in a call can hear it (RR-44)

MetadataItemId enum

Specification
22 §7.1
Values
ValueMeaning
MX-1Context membership and roster, device counts, join/leave times
MX-2Context names, topics, rules, settings, group DM names
MX-3Each member's accountSecurity and needs_encryption
MX-4Who sends each entry, from which device (did), and when
MX-5Entry kind and, for operations, the target message
MX-6Padded content size (256-byte buckets)
MX-7Attachment count and padded sizes
MX-8Reply structure (encrypted; members only)
MX-9Mention hints and mentionAll
MX-10Typing, read positions
MX-11Presence and custom status
MX-12Session subscriptions, levels, foreground state
MX-13MLS handshake metadata
MX-14Manual history shares (VisibilityGrants)
MX-15KeyPackage claims
MX-16DM index and message requests
MX-17Notification records
MX-18Push timing and push type per installation
MX-19Vault shape and write times
MX-20Public identity: secure or not, device count, platforms, enrolment and revocation times
MX-21Device IDs (did) identical everywhere
MX-22Audiences (servers that received a HomeAssertion)
MX-23Community list
MX-24Call participation and ringing
MX-25Who speaks when, loss reports
MX-26Who shares/watches which source, frame sizes, keyframe flags, codec, VP8 picture size, layer IDs
MX-27KID leaf index, epoch residue, attestation timing
MX-28Media bitrates, quality, diagnostics counters
MX-29IP addresses of connecting clients (hosting server, home server, relay/SFU, network; never other call participants, D-094)
MX-31DTLS certificate fingerprints
MX-32DNS queries for _sloppyv names; /v1/resolve queries
MX-33Address existence and kind
MX-34Reported content and context messages (plaintext to moderators)
MX-35sigHash of author-deleted secure messages
MX-36Event tickets and the ciphertext they unlock
MX-37The OIDC login: provider, sign-in times, client identity
MX-38Client software name and version

MetadataObserverMark enum

Specification
22 §7.1
Values
ValueMeaning
YThe observer sees the item in normal operation
PPartially (the cell's note or Mitigation column says how)
–No

RegisterStatus enum

Specification
22 §8.2
Values
ValueMeaning
Accepted (owner)Accepted by the owner
Accepted (D-nnn)Accepted through a logged decision
Accepted (document §)An owning document accepts it within its scope, written with that section, e.g. 'Accepted (04 §18 item 3)'
OpenA pending question could change it
WithdrawnUsed for RR-35 (not listed among the §8.2 status values); its ID stays reserved because RR-* IDs are stable and never reused

ResidualRiskId enum

Specification
22 §8.2
Values
ValueMeaning
RR-1Hijacked provider login replaces or removes the user's identity at once; silent for channel members; group DM clients re-add after W2; no earlier content (D-007); signed-out devices learn only when next opened. Accepted (owner, D-071)
RR-2Channels trust the hosting server for membership and home server for keys; malicious ones add members or replace keys unnoticed; fabricated users of other servers caught by diagnostics only. Accepted (owner requirement, D-035); fabrication part Open (X-1, OQ-22-2)
RR-3Insecure contexts fully readable and forgeable by servers handling them. Accepted (owner, D-021)
RR-4Compromised web origin takes keys of every secure user who loads it; can phish recovery key or run 'Start fresh'; with no links.web any origin may hold keys. Accepted (D-065)
RR-7Content keys don't expire: one compromised member device or vault exposes all history that member can read. Accepted (owner, D-007, D-054)
RR-8First contact with cross-site non-DNSSEC delegation is TOFU; also same-site when another party holds a host in the registrable domain; mis-issued certificate defeats same-site, wellknown and pinning. Accepted (D-074)
RR-9DM identity pins are trust on first use. Accepted (owner requirement for DMs; 07, 12 §20)
RR-10Controller of an insecure account's provider login, or a token holder within 24 h of sign-in, can turn on encryption with own key; contacts pin silently. Accepted (D-085, D-071)
RR-11Member controlling relay/SFU can inject media under another member's key: normally <1 s, up to ~3 s per episode, at most 3 counted episodes per participant and source per minute plus ~3 s/min excused. Accepted (D-043, D-080)
RR-12Removed device holds current epoch keys until a member commits; removed member colluding with the relay or SFU can keep hearing, unbounded if nobody commits. Accepted (D-037)
RR-13SFU path: capture timing and webcam orientation not authenticated. Accepted (17, 18)
RR-14Harvest now, decrypt later for MLS traffic, VaultKeyGrants and 6-digit pairing transcripts. Accepted (04 §17.3)
RR-15Relaying home server gets one online guess per device per user-started pairing session (1 in 10^6). Accepted (D-053)
RR-16Attachment size classes and counts visible; while streaming, a substituted validly encrypted blob is caught only by the final sha256 check. Accepted (04 §18 items 8, 9)
RR-17An Ed25519 library less strict than 04 §4.3 may accept signatures others reject. Accepted (04 §18 item 3)
RR-18Platforms without hardware-backed key store protect keys in software only. Accepted (04 §18 item 13, 08 §13)
RR-19Stolen fetch token reads notification records, previews and event tickets for up to 60 days; event ticket gives account-level access to secure ciphertext for 72 h. Accepted (PD-19-16)
RR-20Leaked platform push token lets anyone wake the device; on iOS a forged call push briefly shows a CallKit call. Accepted (19 §21)
RR-21Observer of hosting server and push traffic can correlate who is notified when. Accepted (19 §21)
RR-22Secure messages and media are non-repudiable. Accepted (D-038, D-040; PD-22-1)
RR-23Remote session tokens are bearer tokens for 1 h (24 h extended). Open (06 OQ-06-1, deferred)
RR-24Revocation isn't instant everywhere (~70 s reachable; up to the hour unreachable; up to 24 h if network cut; 90-day eviction outside audience set). Accepted (D-062; 07 §22.7)
RR-25Home server equivocation on IdentityStates; no key transparency in v1; can delay W4a. Accepted for v1 (07 OQ-07-2)
RR-26Some limits server-enforced, not cryptographic (post-join ops on pre-join messages, VisibilityGrant extent, insecure visibility, retention/deletion). Accepted (D-007; 11 §20; 14)
RR-27Delivered content can't be recalled. Accepted (10 §16 item 6)
RR-28Reported secure content becomes plaintext to the hosting server's moderators; reporter addresses visible to moderators. Accepted (D-077)
RR-29After 365-day quarantine a deleted address can be re-registered as a new incarnation. Accepted (D-086)
RR-30Some lookalike names escape confusable data; squatting. Accepted (01 §15)
RR-31Encrypted media leaks timing and sizes. Accepted (16 §15 item 4, 17 §16 item 2)
RR-32Notification extension holds recent history keys in less isolated storage. Accepted (08 §18.8, 19 §21)
RR-33Device removed as 'removed' (not lost or stolen) keeps a working recovery phrase. Accepted (D-082)
RR-34Home server can serve a new device older authentic vault records or omit a pin. Accepted (08 §18.5)
RR-35Withdrawn (revised D-007): no automatic history handover to delay
RR-36Sequencer can partition a group unnoticed. Accepted (13 §21 item 1)
RR-37Historical message misattribution by hosting server + member; DM backdating with stolen DSK of a device revoked without DeviceRevocation; old-key DM messages can't be shown. Accepted (14 §17 item 5); pin history Open (14 OQ 2)
RR-38DM hosting server can invent group DMs, lie about participation, remove participants. Accepted (12 §20)
RR-39Lease ticks aren't signed; malicious relay can delay/extend coverage ~3 s plus WebSocket downtime. Accepted (15 §17 item 2)
RR-40KeyBackup holder can guess recovery phrase offline (~2^79 Argon2id evaluations). Accepted (D-052)
RR-41With two linked providers whoever acts first wins; unlocked-device thief with a provider login passes fresh authentication. Accepted (05 §22.2)
RR-42Detection depends on settings and silence; diagnostics default failures (D-089), none when off. Accepted (D-035, D-043, D-055); Open in part (OQ-22-2)
RR-43Social engineering to approve attacker's device or type a code. Accepted (08 §18.2)
RR-44Every member of a secure channel's group can decrypt its calls. Accepted (18 §14 item 3)
RR-45Stolen server sign key: impersonation until revocation reaches verifiers (~48 h if blocked from /meta); ver poisoning. Accepted (02 §21.4)
RR-46Pre-upgrade plaintext stays on server and backups. Accepted (D-057)
RR-47Downgrade detection works only after first sight as secure; lookalike insecure channel. Accepted (09 §18 item 2)
RR-48Metadata of secure contexts visible to servers (§7). Accepted (00 §5.4)
RR-49Device IDs identical everywhere and public; cross-federation correlation; public IdentityState shows platforms and enrolment times. Accepted (06 §19); plat Open (07 OQ-07-5)
RR-50Login providers learn sign-in times; provider loss can lock owner out. Accepted (D-016)
RR-51In secure contexts moderation acts on metadata; forbidden content found only via reports. Accepted (D-023, D-040)
RR-52Domain registration controller defeats pinning with strong evidence. Accepted (21 §13 item 12)
RR-53Naive server restore undoes revocations and resets, rolls back ver, KeyPackages, replay caches. Accepted (21 §13 item 7)
RR-54Talk indicator can show 'talking' up to ~1.6 s after a route dies silently. Accepted (16 §15 item 7)
RR-55A member allowed to share can reveal earlier messages to a specific current member; can't be withdrawn. Accepted (owner, D-007)

SecurityGoal enum

Specification
22 §3.2
Values
ValueMeaning
SG-1Confidentiality against third parties
SG-2Confidentiality against the servers involved
SG-3Sender authenticity against servers
SG-4Sender authenticity against other members
SG-5Membership integrity
SG-6Identity continuity: a changed identity key is visible
SG-7Forward secrecy
SG-8Post-compromise security
SG-9Downgrade resistance
SG-10Bounded authority: a revoked speaker or listener is cut off quickly (within 4 s; every call path goes through the hosting server's relay or SFU, which enforces leases, D-094)
SG-11Live only: nothing captured while the user believed they weren't heard or seen is sent
SG-12Non-repudiation (the opposite of deniability)
SG-13Metadata privacy against servers
SG-14Availability against the servers involved
SG-15IP address privacy against strangers (in calls, against other participants: all media goes through the hosting server's relay or SFU, D-094; not against those servers)

SummaryMatrixCell enum

Specification
22 §5.15
Values
ValueMeaning
FullReads and forges
ReadReads but can't forge
MetaMetadata only
DoSCan deny service
ImpCan impersonate a user to others
NoneNone