Package org.signal.chat.account
Message
CheckAccountExistenceRequest
Message
CheckAccountExistenceResponse
Message
ClearRegistrationLockRequest
Message
ClearRegistrationLockResponse
Message
ConfigureUnidentifiedAccessRequest
Message
ConfigureUnidentifiedAccessResponse
Message
ConfirmTotpKeyResponse
Message
ConfirmUsernameHashRequest
Message
ConfirmUsernameHashResponse
Message
DeleteUsernameHashRequest
Message
DeleteUsernameHashResponse
Message
DeleteUsernameLinkRequest
Message
DeleteUsernameLinkResponse
Message
ExternalServiceCredentials
Message
FinishMfaVerificationRequest
Message
FinishMfaVerificationResponse
Message
FinishWebAuthnRegistrationRequest
Message
FinishWebAuthnRegistrationResponse
Message
GenerateTotpKeyRequest
Message
GenerateTotpKeyResponse
Message
GetAccountDataReportRequest
Message
GetAccountDataReportResponse
Message
GetAccountIdentityRequest
Message
GetAccountIdentityResponse
Message
GetCapabilitiesAnonymousRequest
Message
GetCapabilitiesAnonymousResponse
Message
GetCapabilitiesRequest
Message
GetCapabilitiesResponse
Message
GetEntitlementsRequest
Message
GetEntitlementsResponse
Message
LookupUsernameHashRequest
Message
LookupUsernameHashResponse
Message
LookupUsernameLinkRequest
Message
LookupUsernameLinkResponse
Message
RegistrationLockFailure
Message
ReserveUsernameHashRequest
Message
ReserveUsernameHashResponse
Message
SetDiscoverableByPhoneNumberRequest
Message
SetDiscoverableByPhoneNumberResponse
Message
SetMfaKeyMetadataRequest
Message
SetMfaKeyMetadataResponse
Message
SetRegistrationLockRequest
Message
SetRegistrationLockResponse
Message
SetRegistrationRecoveryPasswordRequest
Message
SetRegistrationRecoveryPasswordResponse
Message
SetUsernameLinkRequest
Message
SetUsernameLinkResponse
Message
SetZkCredentialKeyRequest
Message
SetZkCredentialKeyResponse
Message
StartMfaVerificationRequest
Message
StartMfaVerificationResponse
Message
StartWebAuthnRegistrationRequest
Message
StartWebAuthnRegistrationResponse
Message
WebAuthnAuthenticationParameters
Services
service Accounts
Provides methods for working with Signal accounts.
rpc GetAccountIdentity
Request: org.signal.chat.account.GetAccountIdentityRequest
Response:
org.signal.chat.account.GetAccountIdentityResponse
Returns basic identifiers for the authenticated account.
rpc GetEntitlements
Request: org.signal.chat.account.GetEntitlementsRequest
Response:
org.signal.chat.account.GetEntitlementsResponse
Returns entitlements for the authenticated account.
rpc DeleteAccount
Request: org.signal.chat.account.DeleteAccountRequest
Response:
org.signal.chat.account.DeleteAccountResponse
Deletes the authenticated account, purging all associated data in the process.
rpc SetRegistrationLock
Request: org.signal.chat.account.SetRegistrationLockRequest
Response:
org.signal.chat.account.SetRegistrationLockResponse
Sets the registration lock secret for the authenticated account. To remove
a registration lock, please use ClearRegistrationLock.
rpc ClearRegistrationLock
Request: org.signal.chat.account.ClearRegistrationLockRequest
Response:
org.signal.chat.account.ClearRegistrationLockResponse
Removes any registration lock credentials from the authenticated account.
rpc ReserveUsernameHash
Request: org.signal.chat.account.ReserveUsernameHashRequest
Response:
org.signal.chat.account.ReserveUsernameHashResponse
Attempts to reserve one of multiple given username hashes. Reserved
usernames may be claimed later via ConfirmUsernameHash.
rpc ConfirmUsernameHash
Request: org.signal.chat.account.ConfirmUsernameHashRequest
Response:
org.signal.chat.account.ConfirmUsernameHashResponse
Sets the username hash/encrypted username to a previously-reserved value
(see ReserveUsernameHash).
rpc DeleteUsernameHash
Request: org.signal.chat.account.DeleteUsernameHashRequest
Response:
org.signal.chat.account.DeleteUsernameHashResponse
Clears the current username hash, ciphertext, and link for the authenticated user.
rpc SetUsernameLink
Request: org.signal.chat.account.SetUsernameLinkRequest
Response:
org.signal.chat.account.SetUsernameLinkResponse
Associates the given username ciphertext with the account, replacing any previously stored ciphertext. A new link handle will optionally be created, and the link handle to use will be returned in any event.
rpc DeleteUsernameLink
Request: org.signal.chat.account.DeleteUsernameLinkRequest
Response:
org.signal.chat.account.DeleteUsernameLinkResponse
Clears any username link associated with the authenticated account.
rpc ConfigureUnidentifiedAccess
Request: org.signal.chat.account.ConfigureUnidentifiedAccessRequest
Response:
org.signal.chat.account.ConfigureUnidentifiedAccessResponse
Configures "unidentified access" keys and preferences for the authenticated account. Other users permitted to interact with this account anonymously may take actions like fetching pre-keys and profiles for this account or sending sealed-sender messages without providing identifying credentials.
rpc SetDiscoverableByPhoneNumber
Request: org.signal.chat.account.SetDiscoverableByPhoneNumberRequest
Response:
org.signal.chat.account.SetDiscoverableByPhoneNumberResponse
Sets whether the authenticated account may be discovered by phone number via the Contact Discovery Service (CDS).
rpc SetRegistrationRecoveryPassword
Request: org.signal.chat.account.SetRegistrationRecoveryPasswordRequest
Response:
org.signal.chat.account.SetRegistrationRecoveryPasswordResponse
Sets the registration recovery password for the authenticated account.
rpc SetZkCredentialKey
Request: org.signal.chat.account.SetZkCredentialKeyRequest
Response:
org.signal.chat.account.SetZkCredentialKeyResponse
Store a public key used to issue and verify zero-knowledge (anonymous) credentials for the account.
rpc ChangeNumber
Request: org.signal.chat.account.ChangeNumberRequest
Response:
org.signal.chat.account.ChangeNumberResponse
Changes the phone number associated with the authenticated account.
rpc GetAccountDataReport
Request: org.signal.chat.account.GetAccountDataReportRequest
Response:
org.signal.chat.account.GetAccountDataReportResponse
Produces a report of non-ephemeral account data stored by the service
rpc GetCapabilities
Request: org.signal.chat.account.GetCapabilitiesRequest
Response:
org.signal.chat.account.GetCapabilitiesResponse
Gets the capabilities for the authenticated account.
rpc GenerateTotpKey
Request: org.signal.chat.account.GenerateTotpKeyRequest
Response:
org.signal.chat.account.GenerateTotpKeyResponse
Generates and stores a pending TOTP key for the authenticated account.
To "activate" the key, callers must call the ConfirmTotpKey endpoint.
TOTP keys may only be generated for accounts without phone numbers.
rpc ConfirmTotpKey
Request: org.signal.chat.account.ConfirmTotpKeyRequest
Response:
org.signal.chat.account.ConfirmTotpKeyResponse
Confirms that the caller has stored and can derive one-time passwords from
a pending TOTP key generated via GenerateTotpKey and stores/activates the
key for the caller's account
TOTP keys may only be generated for accounts without phone numbers.
rpc StartWebAuthnRegistration
Request: org.signal.chat.account.StartWebAuthnRegistrationRequest
Response:
org.signal.chat.account.StartWebAuthnRegistrationResponse
Returns parameters for initiating a WebAuthn registration ceremony
WebAuthn credentials may only be registered for accounts without phone numbers
rpc FinishWebAuthnRegistration
Request: org.signal.chat.account.FinishWebAuthnRegistrationRequest
Response:
org.signal.chat.account.FinishWebAuthnRegistrationResponse
Concludes a WebAuthn registration ceremony to add a passkey to the authenticated account
WebAuthn credentials may only be registered for accounts without phone numbers
rpc ListMfaKeys
Request: org.signal.chat.account.ListMfaKeysRequest
Response:
org.signal.chat.account.ListMfaKeysResponse
Returns a list of confirmed MFA keys for the authenticated account
rpc SetMfaKeyMetadata
Request: org.signal.chat.account.SetMfaKeyMetadataRequest
Response:
org.signal.chat.account.SetMfaKeyMetadataResponse
Updates encrypted, user-supplied metadata (e.g. a human-readable name and creation timestamp) for an existing, confirmed MFA key
rpc RemoveMfaKey
Request: org.signal.chat.account.RemoveMfaKeyRequest
Response:
org.signal.chat.account.RemoveMfaKeyResponse
Removes an MFA key from the authenticated account
rpc StartMfaVerification
Request: org.signal.chat.account.StartMfaVerificationRequest
Response:
org.signal.chat.account.StartMfaVerificationResponse
Requests the parameters needed to verify with an MFA factor associated with this account.
rpc FinishMfaVerification
Request: org.signal.chat.account.FinishMfaVerificationRequest
Response:
org.signal.chat.account.FinishMfaVerificationResponse
Attemps to verify an MFA factor associated with this account.
service AccountsAnonymous
Provides methods for looking up Signal accounts. Callers must not provide identifying credentials when calling methods in this service.
rpc CheckAccountExistence
Request: org.signal.chat.account.CheckAccountExistenceRequest
Response:
org.signal.chat.account.CheckAccountExistenceResponse
Checks whether an account with the given service identifier exists.
rpc LookupUsernameHash
Request: org.signal.chat.account.LookupUsernameHashRequest
Response:
org.signal.chat.account.LookupUsernameHashResponse
Finds the service identifier of the account associated with the given username hash.
rpc LookupUsernameLink
Request: org.signal.chat.account.LookupUsernameLinkRequest
Response:
org.signal.chat.account.LookupUsernameLinkResponse
Finds the encrypted username identified by a given username link handle.
rpc GetCapabilities
Request: org.signal.chat.account.GetCapabilitiesAnonymousRequest
Response:
org.signal.chat.account.GetCapabilitiesAnonymousResponse
Gets the publicly-visible capabilities enabled on the account identified by the provided ACI.
Messages
message BackupEntitlement
(Nested in org.signal.chat.account.GetEntitlementsResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | level |
uint64
|
The backup level of the account |
| 2 | expiration_epoch_seconds |
uint64
|
When the backup entitlement expires, in number of seconds since epoch |
message BadgeEntitlement
(Nested in org.signal.chat.account.GetEntitlementsResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | badge_id |
string
|
The id of the badge. Metadata to display for badges may be obtained by cross-referencing badge ids with RemoteConfiguration.GetBadges. |
| 2 | expiration_epoch_seconds |
uint64
|
When the badge expires, in number of seconds since epoch |
| 3 | visible |
bool
|
Whether the badge is currently configured to be visible |
message Capabilities
| Field | Type | Description | |
|---|---|---|---|
| 1 | capabilities |
repeated
org.signal.chat.common.DeviceCapability
|
A list of capabilities enabled on the account. |
message ChangeNumberRequest
| Field | Type | Description | |
|---|---|---|---|
| 3 | number |
string
|
The new phone number for the authenticated account. |
| 4 | registration_lock |
bytes
|
The registration lock secret for the new phone number, if the account associated with the new phone number has a registration lock configured. |
| 5 | pni_identity_key |
bytes
|
The new public identity key to use for the phone-number identity (PNI) associated with the new phone number. |
| 6 | device_messages |
org.signal.chat.messages.IndividualRecipientMessageBundle
|
Synchronization messages to send to companion devices to supply the private keys associated with the new identity key and their new pre-keys. Exactly one message must be supplied for each device other than the sending (primary) device. May be omitted if no companion devices are linked to the account. |
| 7 | device_pni_signed_pre_keys |
map<uint32, EcSignedPreKey>
|
A new signed EC pre-key for each device on the account, including the sending device, keyed by device ID. Each must be accompanied by a valid signature from the identity key in this request. |
| 8 | device_pni_pq_last_resort_pre_keys |
map<uint32, KemSignedPreKey>
|
A new signed post-quantum last-resort pre-key for each device on the account, including the sending device, keyed by device ID. Each must be accompanied by a valid signature from the identity key in this request. |
| 9 | pni_registration_ids |
map<uint32, uint32>
|
The new phone-number-identity registration ID for each device on the account, including the sending device, keyed by device ID. |
|
oneof verification
|
|||
| 1 | session_id |
bytes
|
A verified registration session ID (as returned by the registration service) for the new phone number. |
| 2 | recovery_password |
bytes
|
A registration recovery password for the new phone number. |
message ChangeNumberResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | account_identifiers |
org.signal.chat.common.AccountIdentifiers
|
The identifiers of the account after the successful number change. |
| 2 | mismatched_devices |
org.signal.chat.messages.MismatchedDevices
|
Mismatched number of devices or device ids in 'devices to notify' list |
| 3 | registration_lock_failure |
org.signal.chat.account.RegistrationLockFailure
|
The account associated with the new phone number has a registration lock, and the provided registration lock secret was missing or incorrect. |
| 4 | stale_devices |
org.signal.chat.account.StaleDevices
|
Mismatched registration ids in 'devices to notify' list |
| 5 | message_too_large |
org.signal.chat.errors.FailedPrecondition
|
One or more device messages was too large |
| 6 | unverified_registration_session |
org.signal.chat.errors.FailedPrecondition
|
The registration session is unverified |
| 7 | invalid_registration_session |
org.signal.chat.errors.FailedPrecondition
|
The number does not match the registration session, or the registration session is invalid |
| 8 | recovery_password_verification_failed |
org.signal.chat.errors.FailedPrecondition
|
|
message CheckAccountExistenceRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | service_identifier |
org.signal.chat.common.ServiceIdentifier
|
The service identifier of an account that may or may not exist. |
message CheckAccountExistenceResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | account_exists |
bool
|
True if an account exists with the given service identifier or false if no account was found. |
message ConfigureUnidentifiedAccessRequest
| Field | Type | Description | |
|---|---|---|---|
|
oneof configuration
|
|||
| 1 | unidentified_access_key |
bytes
|
The key that other users must provide to interact with this account anonymously (i.e. to retrieve keys or profiles or to send messages) unless unrestricted unidentified access is permitted. Must be present if unrestricted unidentified access is not allowed. |
| 2 | allow_unrestricted_unidentified_access |
google.protobuf.Empty
|
If set, any user may interact with this account anonymously without providing an unidentified access key. Otherwise, users must provide the given unidentified access key to interact with this account anonymously. Setting unrestricted unidentified access will clear any existing unidentified_access_key |
message ConfirmTotpKeyRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | one_time_password |
uint32
|
A one-time password derived from the current pending TOTP key |
| 2 | metadata_ciphertext |
bytes
|
The ciphertext of user-provided metadata (presumably including a human-readable name and creation timestamp) to be attached to the newly-confirmed key |
message ConfirmTotpKeyResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | key_confirmed |
org.signal.chat.account.ConfirmTotpKeyResponse.KeyConfirmed
|
The provided one-time password was accepted and the pending TOTP key was stored with the provided name ciphertext |
| 2 | one_time_password_not_verified |
org.signal.chat.errors.FailedPrecondition
|
The provided one-time password was not valid for any reason (including incorrect passwords, misaligned clocks, or missing account records) |
| 3 | too_many_mfa_keys |
org.signal.chat.errors.FailedPrecondition
|
The authenticated account already has too many MFA keys of all types, and the caller must remove one before adding more |
message ConfirmUsernameHashRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | username_hash |
bytes
|
The username hash to claim for the authenticated account. |
| 2 | zk_proof |
bytes
|
A zero-knowledge proof that the given username hash was generated by the Signal username algorithm. |
| 3 | username_ciphertext |
bytes
|
The ciphertext of the chosen username for use in public-facing contexts (e.g. links and QR codes). |
message ConfirmUsernameHashResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | confirmed_username_hash |
org.signal.chat.account.ConfirmUsernameHashResponse.ConfirmedUsernameHash
|
The details of the successfully confirmed username. |
| 2 | reservation_not_found |
org.signal.chat.errors.FailedPrecondition
|
The provided hash was not reserved for the account. |
| 3 | username_not_available |
org.signal.chat.account.UsernameNotAvailable
|
The reservation has lapsed and the requested username has been claimed by another caller. |
message ConfirmedUsernameHash
(Nested in org.signal.chat.account.ConfirmUsernameHashResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 2 | username_link_handle |
bytes
|
The server-generated username link handle for the newly-confirmed username. |
message ExternalServiceCredentials
A username/password pair for authenticating with an external service.
| Field | Type | Description | |
|---|---|---|---|
| 1 | username |
string
|
A username that can be presented to authenticate with the external service. |
| 2 | password |
string
|
A password that can be presented to authenticate with the external service. |
message FinishMfaVerificationRequest
| Field | Type | Description | |
|---|---|---|---|
|
oneof credential
|
|||
| 1 | totp_password |
uint32
|
/ A 6-digit TOTP password to validate |
| 2 | webauthn_authentication_response_json |
string
|
/ A WebAuthn-compatible JSON-serialized authentication response |
message FinishMfaVerificationResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | success |
bool
|
/ If true, the selected authentication factor was verified correctly. |
message FinishWebAuthnRegistrationRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | attestation_object |
bytes
|
The attestation object from a completed registration ceremony, serialized as specified in https://www.w3.org/TR/webauthn/#attestation-object |
| 2 | collected_client_data_json |
string
|
The "collected client data" map used in the registration ceremony, as the exact JSON map that was hashed for the authenticator |
| 3 | metadata_ciphertext |
bytes
|
The ciphertext of user-provided metadata (presumably including a human-readable name and creation timestamp) to be attached to the newly-confirmed key |
message FinishWebAuthnRegistrationResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | key_confirmed |
org.signal.chat.account.FinishWebAuthnRegistrationResponse.KeyConfirmed
|
The provided public key has been registered for the account |
| 2 | key_not_confirmed |
org.signal.chat.errors.FailedPrecondition
|
The registration response was not verified successfully for any reason |
| 3 | too_many_mfa_keys |
org.signal.chat.errors.FailedPrecondition
|
The authenticated account already has too many MFA keys, and the caller must remove one before adding one (this can be true even if it was not when starting the request, since there is nothing to prevent multiple registrations from occurring in parallel) |
message GenerateTotpKeyResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | key_generated |
org.signal.chat.account.GenerateTotpKeyResponse.KeyGenerated
|
A new, pending TOTP key has been generated and added to the authenticated account |
| 2 | too_many_totp_keys |
org.signal.chat.errors.FailedPrecondition
|
The authenticated account already has too many TOTP keys, and the caller must remove one before adding more |
| 3 | too_many_mfa_keys |
org.signal.chat.errors.FailedPrecondition
|
The authenticated account already has too many MFA keys of all types, and the caller must remove one before adding more |
message GetAccountDataReportResponse
| Field | Type | Description | |
|---|---|---|---|
| 3 | json |
string
|
The JSON representation of the data report |
| 4 | text |
string
|
A plaintext representation of the data report |
message GetAccountIdentityResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | account_identifiers |
org.signal.chat.common.AccountIdentifiers
|
The identifiers for the authenticated account. |
message GetCapabilitiesAnonymousRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | account_identifier |
org.signal.chat.common.ServiceIdentifier
|
The ACI of the account for which to get capabilities. |
|
oneof authentication
|
|||
| 2 | unidentified_access_key |
bytes
|
The unidentified access key for the targeted account. |
| 3 | group_send_token |
bytes
|
A group send endorsement token for the targeted account. |
message GetCapabilitiesAnonymousResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | capabilities |
org.signal.chat.account.Capabilities
|
A list of capabilities enabled on the account. |
| 2 | not_found |
org.signal.chat.errors.NotFound
|
|
| 3 | failed_unidentified_authorization |
org.signal.chat.errors.FailedUnidentifiedAuthorization
|
|
message GetCapabilitiesResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | capabilities |
org.signal.chat.account.Capabilities
|
A list of capabilities enabled on the account. |
message GetEntitlementsResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | badges |
repeated
org.signal.chat.account.GetEntitlementsResponse.BadgeEntitlement
|
Active badges added via Donations.redeemReceipt |
| 2 | backup |
org.signal.chat.account.GetEntitlementsResponse.BackupEntitlement
|
If present, the backup level set via Backups.redeemReceipt |
message KeyConfirmed
(Nested in org.signal.chat.account.ConfirmTotpKeyResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | key_id |
uint32
|
The account-specific identifier for the newly-confirmed TOTP key |
message KeyConfirmed
(Nested in org.signal.chat.account.FinishWebAuthnRegistrationResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | key_id |
uint32
|
An account-specific identifier for the new WebAuthn key |
message KeyGenerated
(Nested in org.signal.chat.account.GenerateTotpKeyResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | key |
bytes
|
The raw TOTP key |
| 2 | totp_parameters |
org.signal.chat.account.TotpParameters
|
The TOTP parameters associated with the generated key |
message LookupUsernameHashRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | username_hash |
bytes
|
A 32-byte username hash for which to find an account. |
message LookupUsernameHashResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | service_identifier |
org.signal.chat.common.ServiceIdentifier
|
The service identifier associated with the provided username hash. |
| 2 | not_found |
org.signal.chat.errors.NotFound
|
No account was found for the provided username hash. |
message LookupUsernameLinkRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | username_link_handle |
bytes
|
The link handle for which to find an encrypted username. Link handles are 16-byte representations of UUIDs. |
message LookupUsernameLinkResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | username_ciphertext |
bytes
|
The ciphertext of the username identified by the provided link handle. |
| 2 | not_found |
org.signal.chat.errors.NotFound
|
No username was found for the provided link handle. |
message MetadataUpdated
(Nested in org.signal.chat.account.SetMfaKeyMetadataResponse
)
| Field | Type | Description |
|---|
message MfaKeyMetadata
(Nested in org.signal.chat.account.ListMfaKeysResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | metadata_ciphertext |
bytes
|
The user-provided ciphertext for metadata associated with this MFA key |
| 2 | type |
org.signal.chat.account.ListMfaKeysResponse.MfaKeyMetadata.MfaKeyType
|
The type of MFA factor this key is for |
message RegistrationLockFailure
Information about the current Registration lock and SVR credentials. With a correct PIN, the credentials can be used to recover the secret used to derive the registration lock password.
| Field | Type | Description | |
|---|---|---|---|
| 1 | time_remaining_millis |
uint64
|
Time remaining in milliseconds before the existing registration lock expires |
| 2 | svr2_credentials |
org.signal.chat.account.ExternalServiceCredentials
|
Credentials that can be used with SVR2 |
message RemoveMfaKeyRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | key_id |
uint32
|
The account-specific identifier of the MFA key to remove |
message ReserveUsernameHashRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | username_hashes |
repeated
bytes
|
A prioritized list of username hashes to attempt to reserve. |
message ReserveUsernameHashResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | username_hash |
bytes
|
The first username hash that was available (and actually reserved). |
| 2 | username_not_available |
org.signal.chat.account.UsernameNotAvailable
|
Indicates that, of all of the candidate hashes provided, none were available. Callers may generate a new set of hashes and and retry. |
message SetDiscoverableByPhoneNumberRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | discoverable_by_phone_number |
bool
|
If true, the authenticated account may be discovered by phone number via the Contact Discovery Service (CDS). Otherwise, other users must discover this account by other means (i.e. by username). |
message SetMfaKeyMetadataRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | key_id |
uint32
|
The account-specific identifier of the MFA key to modify |
| 2 | metadata_ciphertext |
bytes
|
The ciphertext of the new user-provided metadata to be attached to the identified key |
message SetMfaKeyMetadataResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | success |
org.signal.chat.account.SetMfaKeyMetadataResponse.MetadataUpdated
|
New metadata was stored for the identified key |
| 2 | key_not_found |
org.signal.chat.errors.NotFound
|
No TOTP was found with the given ID |
message SetRegistrationLockRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | registration_lock |
bytes
|
The new registration lock secret for the authenticated account. |
message SetRegistrationRecoveryPasswordRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | registration_recovery_password |
bytes
|
The new registration recovery password for the authenticated account. |
message SetUsernameLinkRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | username_ciphertext |
bytes
|
The username ciphertext for which to generate a new link handle. |
| 2 | keep_link_handle |
bool
|
If true and the account already had an encrypted username stored, the existing link handle will be reused. Otherwise a new link handle will be created. |
message SetUsernameLinkResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | username_link_handle |
bytes
|
A new link handle for the given username ciphertext. |
| 2 | no_username_set |
org.signal.chat.errors.FailedPrecondition
|
The authenticated account did not have a username set. |
message SetZkCredentialKeyRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | public_key |
bytes
|
A serialized libsignal ZkCredentialPublicKey |
message SetZkCredentialKeyResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | rotation_id |
uint64
|
A random, non-zero, value that must be included in credential requests using the key. This value allows the server to ratchet the resulting binding identity, as reverting to the previous key will result in a new rotation ID. |
message StaleDevices
A list of devices that are linked to the account but presented a stale registration ID (indicating the device has likely been replaced by another device).
| Field | Type | Description | |
|---|---|---|---|
| 1 | stale_devices |
repeated
uint32
|
The IDs of devices that are no longer active. |
message StartMfaVerificationResponse
| Field | Type | Description | |
|---|---|---|---|
| 1 | has_totp |
bool
|
/ If true, a TOTP password will be accepted for verification |
| 2 | webauthn_authentication_parameters |
optional
org.signal.chat.account.StartMfaVerificationResponse.WebAuthnAuthenticationParameters
|
/ If present, information required to complete a WebAuthn authentication |
message StartWebAuthnRegistrationResponse
| Field | Type | Description | |
|---|---|---|---|
|
oneof response
|
|||
| 1 | params |
org.signal.chat.account.StartWebAuthnRegistrationResponse.WebAuthnCreateParameters
|
The parameters to use for a WebAuthn registration ceremony |
| 2 | too_many_mfa_keys |
org.signal.chat.errors.FailedPrecondition
|
The authenticated account already has too many MFA keys, and the caller must remove one before adding one |
message TotpParameters
| Field | Type | Description | |
|---|---|---|---|
| 1 | algorithm |
string
|
The HMAC algorithm (e.g. "HmacSHA256") used by the TOTP generator |
| 2 | password_length |
uint32
|
The length of one-time passwords (in decimal digits) produced and expected by the TOTP generator |
| 3 | time_step_seconds |
uint32
|
The time step (in seconds) used by the TOTP generator |
message WebAuthnAuthenticationParameters
(Nested in org.signal.chat.account.StartMfaVerificationResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | challenge |
bytes
|
/ A random challenge that must be included in the authenticator response, to prevent replay attacks |
| 2 | timeout_seconds |
uint32
|
/ The estimated amount of time, in seconds, after which an otherwise-valid response will be rejected |
| 3 | allowed_credential_ids |
repeated
bytes
|
/ A list of credential IDs associated with this account |
message WebAuthnCreateParameters
(Nested in org.signal.chat.account.StartWebAuthnRegistrationResponse
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | user_handle |
bytes
|
The "user handle" (user.id) that should be handed to the authenticator |
| 2 | allowed_algorithms |
repeated
int64
|
The COSE IDs (https://www.iana.org/assignments/cose#algorithms) of acceptable algorithms for the created key |
| 3 | exclude_credential_ids |
repeated
bytes
|
A list of the credential IDs already registered for this account; these can be passed to candidate authenticators to tell them not to create a new key if they already have a private key matching one of these |
Enums
enum MfaKeyType
| Name | Number | Description |
|---|---|---|
MFA_KEY_TYPE_UNSPECIFIED |
0 | |
MFA_KEY_TYPE_TOTP |
1 | |
MFA_KEY_TYPE_WEBAUTHN |
2 |