Package org.signal.chat.common
Messages
message AccountIdentifiers
All identifiers associated with an account.
| Field | Type | Description | |
|---|---|---|---|
| 1 | service_identifiers |
repeated
org.signal.chat.common.ServiceIdentifier
|
A list of service identifiers for the identified account. Always includes exactly one ACI service identifier and at most one PNI service identifier. |
| 2 | e164 |
string
|
The phone number associated with the identified account. May be empty if the given account does not have a phone number. |
| 3 | username_hash |
bytes
|
The username hash (if any) associated with the identified account. May be empty if no username is associated with the identified account. |
| 4 | username_link_handle |
bytes
|
The username link handle UUID associated with the identified account. May be empty if no username is associated with the identified account. |
message Badge
| Field | Type | Description | |
|---|---|---|---|
| 1 | id |
string
|
An ID that uniquely identifies the badge. |
| 2 | category |
string
|
The category the badge falls in ("donor" or "other"). |
| 3 | name |
string
|
The badge name. |
| 4 | description |
string
|
The badge description. |
| 5 | sprites6 |
repeated
string
|
Different size badge SVG files. |
| 6 | svg |
string
|
File name of the scalable vector graphic representing this badge. |
| 7 | svgs |
repeated
org.signal.chat.common.BadgeSvg
|
Pairs of light/dark SVG files designed for display at different sizes. |
message BadgeSvg
| Field | Type | Description | |
|---|---|---|---|
| 1 | light |
string
|
File name of the scalable vector graphic for light mode. |
| 2 | dark |
string
|
File name of the scalable vector graphic for dark mode. |
message EcPreKey
| Field | Type | Description | |
|---|---|---|---|
| 1 | key_id |
int32
|
A locally-unique identifier for this key, which will be provided by peers using this key to encrypt messages so the private key can be looked up. |
| 2 | public_key |
bytes
|
The public key, serialized in libsignal's elliptic-curve public key format. |
message EcSignedPreKey
| Field | Type | Description | |
|---|---|---|---|
| 1 | key_id |
int32
|
A locally-unique identifier for this key, which will be provided by peers using this key to encrypt messages so the private key can be looked up. |
| 2 | public_key |
bytes
|
The public key, serialized in libsignal's elliptic-curve public key format. |
| 3 | signature |
bytes
|
A signature of the public key, verifiable with the identity key for the account/identity associated with this pre-key. |
message KemSignedPreKey
| Field | Type | Description | |
|---|---|---|---|
| 1 | key_id |
int32
|
An locally-unique identifier for this key, which will be provided by peers using this key to encrypt messages so the private key can be looked up. |
| 2 | public_key |
bytes
|
The public key, serialized in libsignal's Kyber1024 public key format. |
| 3 | signature |
bytes
|
A signature of the public key, verifiable with the identity key for the account/identity associated with this pre-key. |
message S3UploadForm
An upload location, credentials, and metadata which may be used to upload an object to AWS S3
| Field | Type | Description | |
|---|---|---|---|
| 1 | key |
string
|
The S3 key (i.e. path and filename) for the uploaded file. |
| 2 | credential |
string
|
A scoped credential. Includes the AWS access key, date, region targeted, and AWS service. |
| 3 | acl |
string
|
The type of access control for the uploaded file. |
| 4 | algorithm |
string
|
The algorithm used to calculate a signature on the S3 policy. |
| 5 | date |
string
|
The timestamp (formatted as "yyyyMMdd'T'HHmmssX") at which the S3 policy and signature were generated. |
| 6 | policy |
string
|
The S3 policy (as a base64-encoded JSON string) used to upload the file. |
| 7 | signature |
string
|
A digital signature (formatted as a hex string) on the S3 policy. |
message ServiceIdentifier
| Field | Type | Description | |
|---|---|---|---|
| 1 | identity_type |
org.signal.chat.common.IdentityType
|
The type of identity represented by this service identifier. |
| 2 | uuid |
bytes
|
The UUID of the identity represented by this service identifier. |
message UploadForm
An upload location and credentials which may be used to upload an object to an external CDN
| Field | Type | Description | |
|---|---|---|---|
| 1 | cdn |
uint32
|
Indicates the CDN type. 3 indicates resumable uploads using TUS |
| 2 | key |
string
|
The location within the specified cdn where the finished upload can be found |
| 3 | headers |
map<string, string>
|
A map of headers to include with all upload requests. Potentially contains time-limited upload credentials |
| 4 | signed_upload_location |
string
|
The URL to upload to with the appropriate protocol |
message ZkCredential
| Field | Type | Description | |
|---|---|---|---|
| 1 | redemption_time |
int64
|
Day on which this credential can be redeemed, in UTC seconds since epoch |
| 2 | credential |
bytes
|
The ZK credential, using libsignal's serialization |
Enums
enum DeviceCapability
| Name | Number | Description |
|---|---|---|
DEVICE_CAPABILITY_UNSPECIFIED |
0 | |
DEVICE_CAPABILITY_STORAGE |
1 | |
DEVICE_CAPABILITY_TRANSFER |
2 | |
DEVICE_CAPABILITY_ATTACHMENT_BACKFILL |
6 | |
DEVICE_CAPABILITY_SPARSE_POST_QUANTUM_RATCHET |
7 | |
DEVICE_CAPABILITY_USERNAME_CHANGE_SYNC_MESSAGE |
9 | |
DEVICE_CAPABILITY_OPTIONAL_PHONE_NUMBER |
10 | |
DEVICE_CAPABILITY_REPLY_PRIVATELY |
11 | |
DEVICE_CAPABILITY_CONTACT_DELETE |
12 | |
DEVICE_CAPABILITY_ADMIN_REMOVE_AND_DELETE |
13 |
enum IdentityType
| Name | Number | Description |
|---|---|---|
IDENTITY_TYPE_UNSPECIFIED |
0 | |
IDENTITY_TYPE_ACI |
1 | |
IDENTITY_TYPE_PNI |
2 |