diff --git a/grpc/org.signal.chat.keys.html b/grpc/org.signal.chat.keys.html index 4625f9f21..3dc60e882 100644 --- a/grpc/org.signal.chat.keys.html +++ b/grpc/org.signal.chat.keys.html @@ -522,6 +522,39 @@ identity key fingerprint with the server and the corresponding identity key stor + + 3 + + unrestricted_unidentified_access + + + + + bool + + +

Whether the account has enabled sealed sender from anyone. Always false +if the request was for a PNI, which does not allow any unidentified access.

+ + + + + 4 + + unidentified_access_key_fingerprint + + + + + bytes + + +

If the target supports unidentified access and has an unidentified access +key, a fingerprint of the target's UAK. This may be used to detect a change +in the UAK that the sender has for the target before actually sending a message. Otherwise, empty.

+ + + diff --git a/grpc/org.signal.chat.profile.html b/grpc/org.signal.chat.profile.html index 3b118bbf6..4d574307b 100644 --- a/grpc/org.signal.chat.profile.html +++ b/grpc/org.signal.chat.profile.html @@ -88,9 +88,9 @@

- + Message - DataEtag + AccountInfo

@@ -205,99 +205,45 @@

- + Message - GetUnversionedProfileAnonymousRequest + GetProfileAnonymousRequest

- + Message - GetUnversionedProfileAnonymousResponse + GetProfileAnonymousResponse

- + Message - GetUnversionedProfileRequest + GetProfileRequest

- + Message - GetUnversionedProfileResponse + GetProfileResponse

- + Message - GetUnversionedProfileResult - -

- - - -

- - Message - GetVersionedProfileAnonymousRequest - -

- - - -

- - Message - GetVersionedProfileAnonymousResponse - -

- - - -

- - Message - GetVersionedProfileRequest - -

- - - -

- - Message - GetVersionedProfileResponse - -

- - - -

- - Message - GetVersionedProfileResult - -

- - - -

- - Message - GetVersionedProfileV1Response + LegacyProfileResult

@@ -312,6 +258,15 @@ +

+ + Message + ProfileResult + +

+ + +

Message @@ -421,41 +376,20 @@

-
- - rpc GetVersionedProfile +
+ + rpc GetProfile
- Request: org.signal.chat.profile.GetVersionedProfileRequest + Request: org.signal.chat.profile.GetProfileRequest
- Response: org.signal.chat.profile.GetVersionedProfileResponse + Response: org.signal.chat.profile.GetProfileResponse
-

Retrieves versioned profile data. Callers with an unidentified access key for the account -should use the version of this method in ProfileAnonymous instead.

-
- -
- -
- - - -
-

Retrieves unversioned profile data. Callers with an unidentified access key for the account +

Retrieves profile data. Callers with an unidentified access key for the account should use the version of this method in ProfileAnonymous instead.

@@ -504,40 +438,20 @@ methods in Profile instead.

- - @@ -645,9 +559,9 @@ call ExtendAvatarTTL to extend the TTl.

-

+

- message DataEtag + message AccountInfo @@ -672,7 +586,7 @@ call ExtendAvatarTTL to extend the TTl.

1 - data + identity_key @@ -680,14 +594,14 @@ call ExtendAvatarTTL to extend the TTl.

bytes
- +

The account identity key of the targeted account.

2 - etag_sha256 + unidentified_access_key_fingerprint @@ -695,10 +609,41 @@ call ExtendAvatarTTL to extend the TTl.

bytes
-

An entity tag for data. This may be used in subsequent requests for -this profile version to optimize bandwidth.

-

Clients may validate that the value has been correctly calculated by deriving -the SHA-256 digest of data.

+

A checksum of the unidentified access key for the targeted account.

+ + + + + 3 + + unrestricted_unidentified_access + + + + + bool + + +

Whether the account has enabled sealed sender from anyone.

+ + + + + 4 + + badge_ids + + + + + repeated + + string + + +

A list of the badges ids associated with the account. Metadata to display +badges may be obtained by cross-referencing badge ids with +ProductConfiguration.GetConfiguration.

@@ -1610,9 +1555,9 @@ of a targeted account.

-

+

- message GetUnversionedProfileAnonymousRequest + message GetProfileAnonymousRequest @@ -1640,13 +1585,13 @@ of a targeted account.

request - + - org.signal.chat.profile.GetUnversionedProfileRequest + org.signal.chat.profile.GetProfileRequest -

Note: Only ACI service identifiers are permitted for anonymous requests.

+

Contains the data necessary to request a profile.

@@ -1710,9 +1655,9 @@ of a targeted account.

-

+

- message GetUnversionedProfileAnonymousResponse + message GetProfileAnonymousResponse @@ -1752,16 +1697,17 @@ of a targeted account.

1 - result + profile - + - org.signal.chat.profile.GetUnversionedProfileResult + org.signal.chat.profile.ProfileResult - +

The full profile data. The current profile did not match the provided +etag (or no etag was provided).

@@ -1772,16 +1718,15 @@ of a targeted account.

2 - not_found + etag_matched - + - org.signal.chat.errors.NotFound - + bool -

The target profile was not found

+

The current profile matched the provided etag. If present, this will always be true.

@@ -1791,449 +1736,6 @@ of a targeted account.

3 - - failed_unidentified_authorization - - - - - org.signal.chat.errors.FailedUnidentifiedAuthorization - - - -

The unidentified access key or group send endorsement were not valid for -the request.

- - - - - - - -

- - - -
- - -

- - message GetUnversionedProfileRequest - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
1 - service_identifier - - - - org.signal.chat.common.ServiceIdentifier - - -

The service identifier of the account for which to get profile data.

- -
- - - -
- - -

- - message GetUnversionedProfileResponse - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
-
- oneof response -
-
- 1 - - result - - - - org.signal.chat.profile.GetUnversionedProfileResult - - -
- 2 - - not_found - - - - org.signal.chat.errors.NotFound - - -
- -
- - - -
- - -

- - message GetUnversionedProfileResult - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
1 - identity_key - - - - bytes - -

The identity key of the targeted account/identity type.

2 - unidentified_access - - - - bytes - -

A checksum of the unidentified access key for the targeted account. Absent -if the request was for a PNI.

3 - unrestricted_unidentified_access - - - - bool - -

Whether the account has enabled sealed sender from anyone. Always false -if the request was for a PNI.

4 - capabilities - - - - repeated - - org.signal.chat.common.DeviceCapability - - -

A list of capabilities enabled on the account.

5 - badges - - - - repeated - - org.signal.chat.common.Badge - - -

A list of badges associated with the account. Absent if the request was for -a PNI.

- -
- - - -
- - -

- - message GetVersionedProfileAnonymousRequest - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
1 - request - - - - org.signal.chat.profile.GetVersionedProfileRequest - - -

Contains the data necessary to request a versioned profile.

-
- 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 GetVersionedProfileAnonymousResponse - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2252,7 +1754,7 @@ a PNI.

+ + + + + + + + + +
FieldTypeDescription
-
- oneof response -
-
- 1 - - result - - - - org.signal.chat.profile.GetVersionedProfileResult - - -
- 2 - not_found
- 3 + 4 failed_unidentified_authorization @@ -2268,6 +1770,28 @@ a PNI.

+ 15 + + profile_v1 + + + + org.signal.chat.profile.LegacyProfileResult + + +

Will be present if there is no v2 Profile data for this version.

+

Because this is a temporary field during the migration, it has the highest +field number without serialization overhead. This is purely aesthetic.

@@ -2279,9 +1803,9 @@ a PNI.

-

+

- message GetVersionedProfileRequest + message GetProfileRequest @@ -2306,7 +1830,7 @@ a PNI.

1 - accountIdentifier + account_identifier @@ -2337,7 +1861,7 @@ a PNI.

3 - data_etag + etag @@ -2345,29 +1869,12 @@ a PNI.

bytes
-

The data_etag from the previous request for this Profile version. If -unchanged, the response will omit data and data_etag_matched will be +

The etag from the previous request for this Profile version. If +unchanged, the response will omit profile and etag_matched will be true.

- - 4 - - payment_address_etag - - - - - bytes - - -

The payment_address_etag from the previous request for this account’s -profile. If unchanged, the response will omit payment_address and -payment_address_etag_matched will be true.

- - - @@ -2379,9 +1886,9 @@ profile. If unchanged, the response will omit payment_address and
-

+

- message GetVersionedProfileResponse + message GetProfileResponse @@ -2421,16 +1928,17 @@ profile. If unchanged, the response will omit payment_address and 1 - result + profile - + - org.signal.chat.profile.GetVersionedProfileResult + org.signal.chat.profile.ProfileResult - +

The full profile data. The current profile did not match the provided +etag (or no etag was provided).

@@ -2440,6 +1948,25 @@ profile. If unchanged, the response will omit payment_address and 2 + + etag_matched + + + + + bool + + +

The current profile matched the provided etag. If present, this will always be true.

+ + + + + + + + 3 + not_found @@ -2454,93 +1981,6 @@ profile. If unchanged, the response will omit payment_address and - - - - -

- - - -
- - -

- - message GetVersionedProfileResult - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2548,12 +1988,12 @@ for this version, in which the client should use v1_response.

@@ -2564,56 +2004,6 @@ field number without serialization overhead. This is purely aesthetic.

- - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
-
- oneof data_result -
-
- 1 - - data_etag - - - - org.signal.chat.profile.DataEtag - - -

The ciphertext of a serialized Profile. -Absent if a v2 Profile is not available -for this version, in which the client should use v1_response.

- 2 - - data_etag_matched - - - - bool - -

Indicates that the request’s ETag matched the stored data

- v1_response + legacy_profile - + - org.signal.chat.profile.GetVersionedProfileV1Response + org.signal.chat.profile.LegacyProfileResult
-
- oneof payment_address_result -
-
- 3 - - payment_address_data_etag - - - - org.signal.chat.profile.DataEtag - - -

The ciphertext of the MobileCoin wallet ID on the profile.

- 4 - - payment_address_etag_matched - - - - bool - -

Indicates that the request’s ETag matched the stored payment_address

@@ -2624,9 +2014,9 @@ field number without serialization overhead. This is purely aesthetic.

-

+

- message GetVersionedProfileV1Response + message LegacyProfileResult @@ -2723,6 +2113,37 @@ field number without serialization overhead. This is purely aesthetic.

+ + 6 + + payment_address + + + + + bytes + + +

The ciphertext of the MobileCoin wallet ID on the profile.

+ + + + + 7 + + account_info + + + + + org.signal.chat.profile.AccountInfo + + + +

Information about the targeted account

+ + + @@ -2767,6 +2188,120 @@ due to a disallowed country prefix on the account's phone number.

+
+ + +

+ + message ProfileResult + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + data + + + + bytes + +

The ciphertext of the requested version of the profile

2 + payment_address + + + + bytes + +

The ciphertext of the MobileCoin wallet ID on the profile.

3 + account_info + + + + org.signal.chat.profile.AccountInfo + + +

Information about the targeted account

4 + etag + + + + bytes + +

An entity tag for the profile. This may be used in subsequent requests + for this profile version to optimize bandwidth.

+

Note that this hash will not match the expected_data_hash used on + SetProfile for concurrency control.

+

Clients may validate that the value has been correctly calculated by + calculating a 10-byte truncated TupleHash256 as follows:

+

TupleHash256(S = "ProfileETag/v1", L = 80 bits, tuple = [ + data, + payment_address, + account_info.identity_key, + account_info.unidentified_access_key_fingerprint, + account_info.unrestricted_unidentified_access ? 0x01 : 0x00, + uint32BE(count(account_info.badge_ids)), + utf8(id) for each id in sortLexAscendingByUtf8Bytes(account_info.badge_ids), + ])

+

Absent/empty fields contribute an empty element (not zero bytes omitted): + a missing payment_address is still a present, zero-length tuple element.

+

This etag will always exclusively cover the documented fields. If fields + are added in the future, a new etag field must be introduced.

+ +
+ + +
diff --git a/grpc/search.html b/grpc/search.html index ad0196aab..9db7b3a91 100644 --- a/grpc/search.html +++ b/grpc/search.html @@ -60,8 +60,8 @@