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 +
+
+ 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.
+
+ 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.
-
+
Message
- DataEtag
+ AccountInfo
-
+
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
+
+ Message
+ ProfileResult
+
+
Message
@@ -421,41 +376,20 @@
Retrieves versioned profile data. Callers with an unidentified access key for the account
-should use the version of this method in 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 Retrieves versioned profile data. Retrieves unversioned profile data. Retrieves profile data. The account identity key of the targeted account. An entity tag for Clients may validate that the value has been correctly calculated by deriving
-the SHA-256 digest of A checksum of the unidentified access key for the targeted account. Whether the account has enabled sealed sender from anyone. 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. Note: Only ACI service identifiers are permitted for anonymous requests. Contains the data necessary to request a profile. The full profile data. The current profile did not match the provided
+etag (or no etag was provided). The target profile was not found The current profile matched the provided etag. If present, this will always be true. The unidentified access key or group send endorsement were not valid for
-the request. The service identifier of the account for which to get profile data. The identity key of the targeted account/identity type. A checksum of the unidentified access key for the targeted account. Absent
-if the request was for a PNI. Whether the account has enabled sealed sender from anyone. Always false
-if the request was for a PNI. A list of capabilities enabled on the account. A list of badges associated with the account. Absent if the request was for
-a PNI. Contains the data necessary to request a versioned profile. The unidentified access key for the targeted account. A group send endorsement token for the targeted account. 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. The The The The full profile data. The current profile did not match the provided
+etag (or no etag was provided). The current profile matched the provided etag. If present, this will always be true. The ciphertext of a serialized Profile.
-Absent if a v2 Profile is not available
-for this version, in which the client should use Indicates that the request’s ETag matched the stored The ciphertext of the MobileCoin wallet ID on the profile. Indicates that the request’s ETag matched the stored The ciphertext of the MobileCoin wallet ID on the profile. Information about the targeted account The ciphertext of the requested version of the profile The ciphertext of the MobileCoin wallet ID on the profile. Information about the targeted account 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: 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.
-
- rpc
GetVersionedProfile
+
+
+ rpc
- Request: GetProfile
org.signal.chat.profile.GetVersionedProfileRequest
+ Request: org.signal.chat.profile.GetProfileRequest
- Response: org.signal.chat.profile.GetVersionedProfileResponse
+ Response: org.signal.chat.profile.GetProfileResponse
ProfileAnonymous instead.
-
- rpc
- Request: GetUnversionedProfile
-
- org.signal.chat.profile.GetUnversionedProfileRequest
-
- Response: org.signal.chat.profile.GetUnversionedProfileResponse
-
- ProfileAnonymous instead.Profile instead.
-
- rpc
GetVersionedProfile
+
+
+ rpc
- Request: GetProfile
org.signal.chat.profile.GetVersionedProfileAnonymousRequest
+ Request: org.signal.chat.profile.GetProfileAnonymousRequest
- Response: org.signal.chat.profile.GetVersionedProfileAnonymousResponse
+ Response: org.signal.chat.profile.GetProfileAnonymousResponse
-
- rpc
- Request: GetUnversionedProfile
-
- org.signal.chat.profile.GetUnversionedProfileAnonymousRequest
-
- Response: org.signal.chat.profile.GetUnversionedProfileAnonymousResponse
-
-
+
- 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
+
+
+ 2
- etag_sha256
+ unidentified_access_key_fingerprint
-
@@ -695,10 +609,41 @@ call ExtendAvatarTTL to extend the TTl.
bytes
+ data. This may be used in subsequent requests for
-this profile version to optimize bandwidth.data.
+
+
+
+
+ 3
+
+ unrestricted_unidentified_access
+
+
+
+
+
+ bool
+
+
+
+
+
@@ -1610,9 +1555,9 @@ of a targeted account.
4
+
+ badge_ids
+
+
+
+
+
+ repeated
+
+ string
+
+
+
- message GetUnversionedProfileAnonymousRequest
+ message GetProfileAnonymousRequest
@@ -1640,13 +1585,13 @@ of a targeted account.
request
-
-
+
- org.signal.chat.profile.GetUnversionedProfileRequest
+ org.signal.chat.profile.GetProfileRequest
+
@@ -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
+
@@ -1772,16 +1718,15 @@ of a targeted account.
2
- not_found
+ etag_matched
-
-
+
- org.signal.chat.errors.NotFound
-
+ bool
+
@@ -1791,449 +1736,6 @@ of a targeted account.
3
-
- failed_unidentified_authorization
-
-
-
-
-
- org.signal.chat.errors.FailedUnidentifiedAuthorization
-
-
-
-
-
-
-
-
-
-
-
-
- message GetUnversionedProfileRequest
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field
- Type
- Description
-
-
-
-
-
-
-1
-
- service_identifier
-
-
-
-
-
- org.signal.chat.common.ServiceIdentifier
-
-
-
-
-
-
- message GetUnversionedProfileResponse
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field
- Type
- Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1
-
-
- result
-
-
-
-
-
- org.signal.chat.profile.GetUnversionedProfileResult
-
-
-
-
-
-
-
-
-
-
- 2
-
-
- not_found
-
-
-
-
-
- org.signal.chat.errors.NotFound
-
-
-
-
-
-
- message GetUnversionedProfileResult
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field
- Type
- Description
-
-
-
-
- 1
-
- identity_key
-
-
-
-
-
- bytes
-
-
-
-
-
-
- 2
-
- unidentified_access
-
-
-
-
-
- bytes
-
-
-
-
-
-
- 3
-
- unrestricted_unidentified_access
-
-
-
-
-
- bool
-
-
-
-
-
-
- 4
-
- capabilities
-
-
-
-
-
- repeated
-
- org.signal.chat.common.DeviceCapability
-
-
-
-
-
-
-
-
-
-5
-
- badges
-
-
-
-
-
- repeated
-
- org.signal.chat.common.Badge
-
-
-
-
-
-
- message GetVersionedProfileAnonymousRequest
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Field
- Type
- Description
-
-
-
-
-
-
-
- 1
-
- request
-
-
-
-
-
- org.signal.chat.profile.GetVersionedProfileRequest
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2
-
-
- unidentified_access_key
-
-
-
-
-
- bytes
-
-
-
-
-
-
-
-
-
- 3
-
-
- group_send_token
-
-
-
-
-
- bytes
-
-
-
-
-
- message GetVersionedProfileAnonymousResponse
-
-
-
-
-
-
-
-
@@ -2279,9 +1803,9 @@ a PNI.
-
-
-
-
-
-
-
-
- Field
- Type
- Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1
-
-
- result
-
-
-
-
-
- org.signal.chat.profile.GetVersionedProfileResult
-
-
-
-
-
-
- 2
-
not_found
@@ -2252,7 +1754,7 @@ a PNI.
+
+
+
- 3
+ 4
failed_unidentified_authorization
@@ -2268,6 +1770,28 @@ a PNI.
+
+
+ 15
+
+
+ profile_v1
+
+
+
+
+
+ org.signal.chat.profile.LegacyProfileResult
+
+
+
+
+
+
- message GetVersionedProfileRequest
+ message GetProfileRequest
@@ -2306,7 +1830,7 @@ a PNI.
1
- accountIdentifier
+ account_identifier
@@ -2337,7 +1861,7 @@ a PNI.
- 3
- data_etag
+ etag
bytes
-
@@ -2345,29 +1869,12 @@ a PNI.data_etag from the previous request for this Profile version. If
-unchanged, the response will omit data and data_etag_matched will be
+ etag from the previous request for this Profile version. If
+unchanged, the response will omit profile and etag_matched will be
true.
-
-
@@ -2379,9 +1886,9 @@ profile. If unchanged, the response will omit 4
-
- payment_address_etag
-
-
-
-
-
- bytes
-
-
-
- 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.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
+
@@ -2440,6 +1948,25 @@ profile. If unchanged, the response will omit payment_address and
2
+
+ etag_matched
+
+
+
+
+
+ bool
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+ 3
+
not_found
@@ -2454,93 +1981,6 @@ profile. If unchanged, the response will omit payment_address and
-
- message GetVersionedProfileResult
-
-
-
-
-
-
-
-
@@ -2624,9 +2014,9 @@ field number without serialization overhead. This is purely aesthetic.
-
-
-
-
-
-
-
-
- Field
- Type
- Description
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1
-
-
- data_etag
-
-
-
-
-
- org.signal.chat.profile.DataEtag
-
-
-
-
- v1_response.
-
-
- 2
-
-
- data_etag_matched
-
-
-
-
-
- bool
-
-
-
- data
@@ -2548,12 +1988,12 @@ for this version, in which the client should use
-
-
- v1_response.
15
- v1_response
+ legacy_profile
-
@@ -2564,56 +2004,6 @@ field number without serialization overhead. This is purely aesthetic.
+
- org.signal.chat.profile.GetVersionedProfileV1Response
+ org.signal.chat.profile.LegacyProfileResult
-
-
-
-
-
-
-
-
-
-
-
-
- 3
-
-
- payment_address_data_etag
-
-
-
-
-
- org.signal.chat.profile.DataEtag
-
-
-
-
-
-
-
-
- 4
-
-
- payment_address_etag_matched
-
-
-
-
-
- bool
-
-
-
- payment_address
+
- message GetVersionedProfileV1Response
+ message LegacyProfileResult
@@ -2723,6 +2113,37 @@ field number without serialization overhead. This is purely aesthetic.
+
+
+
+ 6
+
+ payment_address
+
+
+
+
+
+ bytes
+
+
+
+
+
+
@@ -2767,6 +2188,120 @@ due to a disallowed country prefix on the account's phone number.
+ 7
+
+ account_info
+
+
+
+
+
+ org.signal.chat.profile.AccountInfo
+
+
+
+
+
+
+ message ProfileResult
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field
+ Type
+ Description
+
+
+
+
+ 1
+
+ data
+
+
+
+
+
+ bytes
+
+
+
+
+
+
+ 2
+
+ payment_address
+
+
+
+
+
+ bytes
+
+
+
+
+
+
+ 3
+
+ account_info
+
+
+
+
+
+ org.signal.chat.profile.AccountInfo
+
+
+
+
+
+
+
+
+
+4
+
+ etag
+
+
+
+
+
+ bytes
+
+
+
+ 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),
+ ])