From df4dba5ee91ac8c9bde5b34b664eeb36c04593ad Mon Sep 17 00:00:00 2001
From: Documentation Updater
+
+ Message
+ RequestPushChallengeRequest
+
+
+
+ Message
+ RequestPushChallengeResponse
+
+
+
+ Message
+ SentPushChallenge
+
+
HandleChallengeResponse
+ AnswerChallenge
org.signal.chat.challenge.AnswerChallengeRequest
@@ -159,10 +186,47 @@
- Some server endpoints (the "send message" endpoint, for example) may return
- a response indicating the client must complete a challenge before continuing.
- Clients may use this endpoint to provide proof of a completed challenge.
- If successful, the client may then continue their original operation.
+ Submit proof of a challenge completion.
+Some server endpoints (the "send message" endpoint, for example) may return
+a response indicating the client must complete a challenge before continuing.
+Clients may use this endpoint to provide proof of a completed challenge.
+If successful, the client may then continue their original operation.
+
+
+RequestPushChallenge
+
+ org.signal.chat.challenge.RequestPushChallengeRequest
+ org.signal.chat.challenge.RequestPushChallengeResponse
+ Requests that a challenge value be sent to the authenticated account's +primary device via push notification. Once received, callers may present +the challenge value via the HandleChallengeResponse RPC.
+APNs challenge payloads will be formatted as follows:
+{
+ "aps": {
+ "sound": "default",
+ "alert": {
+ "loc-key": "APN_Message"
+ }
+ },
+ "rateLimitChallenge": "{CHALLENGE_TOKEN}"
+}
+
+FCM challenge payloads will be formatted as follows:
+{"rateLimitChallenge": "{CHALLENGE_TOKEN}"}
+
| + | Field | +Type | +Description | + +
|---|
| + | Field | +Type | +Description | + +
|---|---|---|---|
|
+
+ oneof response
+
+ |
+ |||
| + 1 + | ++ sent_push_challenge + | +
+
+
+ google.protobuf.Empty
+
+ |
+ The server attempted to send a challenge value to the authenticated +account's primary device via a push notification. |
+
+
| + 2 + | ++ no_push_token + | +
+
+
+ org.signal.chat.errors.FailedPrecondition
+
+
+ |
+ The authenticated account's primary device does not have a push token. |
+
+
| + | Field | +Type | +Description | + +
|---|
-
+
Message
- CredentialAndRedemptionTime
+ GetCreateCallLinkCredentialRequest
-
+
Message
- GetCreateCallLinkCredentialsRequest
-
-
-
- Message
- GetCreateCallLinkCredentialsResponse
+ GetCreateCallLinkCredentialResponse
GetCreateCallLinkCredentials
+ GetCreateCallLinkCredential
org.signal.chat.credentials.GetCreateCallLinkCredentialsRequest
+ Request: org.signal.chat.credentials.GetCreateCallLinkCredentialRequest
- Response: org.signal.chat.credentials.GetCreateCallLinkCredentialsResponse
+ Response: org.signal.chat.credentials.GetCreateCallLinkCredentialResponse
A zero-knowledge credential that may be redeemed at or up to one day after -the given redemption time
-| - | Field | -Type | -Description | - -
|---|---|---|---|
| 1 | -- credential - | -
-
-
- bytes
-
- |
- - - |
| 2 | -- redemption_time_seconds - | -
-
-
- uint64
-
- |
- - - |
-
- uint64
-
- The earliest time, in seconds since the epoch, at which the associated -credential may be redeemed
+
repeated
- org.signal.chat.credentials.GetGroupCredentialsResponse.CredentialAndRedemptionTime
+ org.signal.chat.common.ZkCredential
+
repeated
- org.signal.chat.credentials.GetGroupCredentialsResponse.CredentialAndRedemptionTime
+ org.signal.chat.common.ZkCredential
+
+ Message
+ ReportMessageRequest
+
+
ReportMessage
+
+ org.signal.chat.messages.ReportMessageRequest
+ org.signal.chat.messages.ReportMessageResponse
+ Reports a message as spam.
+| + | Field | +Type | +Description | + +
|---|---|---|---|
| 1 | ++ source_service_identifier + | +
+
+
+ org.signal.chat.common.ServiceIdentifier
+
+
+ |
+ The service identifier of the party that sent the offending message |
+
+
| 2 | ++ message_guid + | +
+
+
+ bytes
+
+ |
+ The GUID of the offending message |
+
+
| 3 | ++ report_spam_token + | +
+
+
+ bytes
+
+ |
+ The spam-reporting token attached to the offending message |
+
+
| + | Field | +Type | +Description | + +
|---|