From 1ced66e00189fd8e904c1dace600810afd81ab44 Mon Sep 17 00:00:00 2001
From: Documentation Updater
A serialized Ristretto key with a one-byte type prefix
A serialized libsignal ZkCredentialPublicKey
+
+ Message
+ DeleteAvatarRequest
+
+
+
+ Message
+ DeleteAvatarResponse
+
+
+
+ Message
+ ExtendAvatarTTLRequest
+
+
+
+ Message
+ ExtendAvatarTTLResponse
+
+
+
+ Message
+ GetAvatarCredentialsRequest
+
+
+
+ Message
+ GetAvatarCredentialsResponse
+
+
+
+ Message
+ GetAvatarUploadFormRequest
+
+
+
+ Message
+ GetAvatarUploadFormResponse
+
+
GetAvatarCredentials
+
+ org.signal.chat.profile.GetAvatarCredentialsRequest
+ org.signal.chat.profile.GetAvatarCredentialsResponse
+ Returns anonymous credentials that may be presented with avatar operations in ProfilesAnonymous
+Note: Accounts.SetZkCredentialKey is a pre-requisite for this RPC
Profile instead.
Retrieves a profile key credential.
+ + +GetAvatarUploadForm
+
+ org.signal.chat.profile.GetAvatarUploadFormRequest
+ org.signal.chat.profile.GetAvatarUploadFormResponse
+ Returns credentials to upload a v2 avatar. After uploading the avatar, the client
+must call SetProfile with the new avatar URL in the encrypted data.
Because avatars are uploaded anonymously, they have an expiration equal to the +idle account expiration. Clients must periodically (recommended: every 90 days) +call ExtendAvatarTTL to extend the TTl.
+Note: any existing avatar associated with these credentials will be deleted immediately
+ExtendAvatarTTL
+
+ org.signal.chat.profile.ExtendAvatarTTLRequest
+ org.signal.chat.profile.ExtendAvatarTTLResponse
+ Extends the TTL of the avatar currently associated with the request’s avatar auth credential
+DeleteAvatar
+
+ org.signal.chat.profile.DeleteAvatarRequest
+ org.signal.chat.profile.DeleteAvatarResponse
+ Deletes the avatar currently associated with the request’s avatar auth credential.
+Clients must also call SetProfile to remove the avatar from the encrypted data.
data.
+ | + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ avatar_credentials_presentation + | +
+
+
+ bytes
+
+ |
+ + + |
| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ success + | +
+
+
+ google.protobuf.Empty
+
+ |
+ + + |
| + 2 + | ++ invalid_credentials_presentation + | +
+
+
+ org.signal.chat.errors.FailedZkAuthentication
+
+
+ |
+ + + |
| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ avatar_credentials_presentation + | +
+
+
+ bytes
+
+ |
+ + + |
| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ path + | +
+
+
+ string
+
+ |
+ The avatar that was extended. May be used as a check against state de-synchronization. |
+
+
| + 2 + | ++ invalid_credentials_presentation + | +
+
+
+ org.signal.chat.errors.FailedZkAuthentication
+
+
+ |
+ + + |
| + 3 + | ++ not_found + | +
+
+
+ org.signal.chat.errors.NotFound
+
+
+ |
+ the identity does not have an active avatar |
+
+
| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ avatar_credentials_request + | +
+
+
+ bytes
+
+ |
+ + + |
| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ avatar_credentials + | +
+
+
+ bytes
+
+ |
+ + + |
| + 2 + | ++ missing_zk_credential_key + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ the client must call Accounts.SetZkCredentialKey to call this method |
+
+
| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ avatar_credentials_presentation + | +
+
+
+ bytes
+
+ |
+ + + |
| 2 | ++ upload_length + | +
+
+
+ uint32
+
+ |
+ The length of the attachment for the requested upload form. Uploads +performed with this form will be limited to the provided length. |
+
+
| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ avatar_upload_form + | +
+
+
+ org.signal.chat.common.S3UploadForm
+
+
+ |
+ + + |
| + 2 + | ++ invalid_credentials_presentation + | +
+
+
+ org.signal.chat.errors.FailedZkAuthentication
+
+
+ |
+ + + |