Package org.signal.chat.device
Message
ChangeDevicePasswordRequest
Message
ChangeDevicePasswordResponse
Message
ClearPushTokenResponse
Message
SetCapabilitiesRequest
Services
service Devices
Provides methods for working with devices attached to a Signal account.
rpc GetDevices
Request: org.signal.chat.device.GetDevicesRequest
Response:
org.signal.chat.device.GetDevicesResponse
Returns a list of devices associated with the caller's account.
rpc RemoveDevice
Request: org.signal.chat.device.RemoveDeviceRequest
Response:
org.signal.chat.device.RemoveDeviceResponse
Removes a linked device from the caller's account.
Linked devices may only remove themselves. Primary devices may remove any device other than themselves.
rpc SetDeviceName
Request: org.signal.chat.device.SetDeviceNameRequest
Response:
org.signal.chat.device.SetDeviceNameResponse
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.
rpc SetPushToken
Request: org.signal.chat.device.SetPushTokenRequest
Response:
org.signal.chat.device.SetPushTokenResponse
Sets the token(s) the server should use to send new message notifications to the authenticated device.
rpc ClearPushToken
Request: org.signal.chat.device.ClearPushTokenRequest
Response:
org.signal.chat.device.ClearPushTokenResponse
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.
rpc SetCapabilities
Request: org.signal.chat.device.SetCapabilitiesRequest
Response:
org.signal.chat.device.SetCapabilitiesResponse
Declares that the authenticated device supports certain features.
rpc ChangeDevicePassword
Request: org.signal.chat.device.ChangeDevicePasswordRequest
Response:
org.signal.chat.device.ChangeDevicePasswordResponse
Changes the password for the currently authenticated device.
Messages
message ApnsTokenRequest
(Nested in org.signal.chat.device.SetPushTokenRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | apns_token |
string
|
A "standard" APNs device token. |
message FcmTokenRequest
(Nested in org.signal.chat.device.SetPushTokenRequest
)
| Field | Type | Description | |
|---|---|---|---|
| 1 | fcm_token |
string
|
An FCM push token. |
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 SetCapabilitiesRequest
| Field | Type | Description | |
|---|---|---|---|
| 1 | capabilities |
repeated
org.signal.chat.common.DeviceCapability
|
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. |