← Back to packages

Package org.signal.chat.device

Service Devices

Message ApnsTokenRequest

Message ChangeDevicePasswordRequest

Message ChangeDevicePasswordResponse

Message ClearPushTokenRequest

Message ClearPushTokenResponse

Message FcmTokenRequest

Message GetDevicesRequest

Message GetDevicesResponse

Message LinkedDevice

Message RemoveDeviceRequest

Message RemoveDeviceResponse

Message SetCapabilitiesRequest

Message SetCapabilitiesResponse

Message SetDeviceNameRequest

Message SetDeviceNameResponse

Message SetPushTokenRequest

Message SetPushTokenResponse

Services

service Devices

Provides methods for working with devices attached to a Signal account.

Returns a list of devices associated with the caller's account.

Removes a linked device from the caller's account.

Linked devices may only remove themselves. Primary devices may remove any device other than themselves.

Sets the encrypted human-readable name for a specific devices. Primary devices may change the name of any device associated with their account, but linked devices may only change their own name. The response will indicate if the target device was not found.

Sets the token(s) the server should use to send new message notifications to the authenticated device.

Removes any push tokens associated with the authenticated device. After calling this method, the server will assume that the authenticated device will periodically poll for new messages.

Declares that the authenticated device supports certain features.

Messages

message ApnsTokenRequest
(Nested in org.signal.chat.device.SetPushTokenRequest )

Field Type Description
1 apns_token string

A "standard" APNs device token.

message ChangeDevicePasswordRequest

Field Type Description
1 new_password string

message ChangeDevicePasswordResponse

Field Type Description

message ClearPushTokenRequest

Field Type Description

message ClearPushTokenResponse

Field Type Description

message FcmTokenRequest
(Nested in org.signal.chat.device.SetPushTokenRequest )

Field Type Description
1 fcm_token string

An FCM push token.

message GetDevicesRequest

Field Type Description

message GetDevicesResponse

Field Type Description
1 devices repeated org.signal.chat.device.GetDevicesResponse.LinkedDevice

A list of devices linked to the authenticated account.

message LinkedDevice
(Nested in org.signal.chat.device.GetDevicesResponse )

Field Type Description
1 id uint32

The identifier for the device within an account.

2 name bytes

A sequence of bytes that encodes an encrypted human-readable name for this device.

3 last_seen uint64

The approximate time, in milliseconds since the epoch, at which this device last connected to the server.

4 registration_id uint32

The registration ID of the given device.

5 created_at_ciphertext bytes

A sequence of bytes that encodes the time, in milliseconds since the epoch, at which this device was attached to its parent account.

message RemoveDeviceRequest

Field Type Description
1 id uint32

The identifier for the device to remove from the authenticated account. The identifier must not be for the primary device.

message RemoveDeviceResponse

Field Type Description

message SetCapabilitiesRequest

Field Type Description
1 capabilities repeated org.signal.chat.common.DeviceCapability

message SetCapabilitiesResponse

Field Type Description

message SetDeviceNameRequest

Field Type Description
1 name bytes

A sequence of bytes that encodes an encrypted human-readable name for this device.

2 id uint32

The identifier for the device for which to set a name.

message SetDeviceNameResponse

Field Type Description
oneof response
1 success google.protobuf.Empty

The device name was successfully set

2 target_device_not_found org.signal.chat.errors.NotFound

No device with the provided identifier was found on the account

message SetPushTokenRequest

Field Type Description
oneof token_request
1 apns_token_request org.signal.chat.device.SetPushTokenRequest.ApnsTokenRequest

If present, specifies the APNs device token(s) the server will use to send new message notifications to the authenticated device.

2 fcm_token_request org.signal.chat.device.SetPushTokenRequest.FcmTokenRequest

If present, specifies the FCM push token the server will use to send new message notifications to the authenticated device.

message SetPushTokenResponse

Field Type Description