From 4d57da79ac063cc34355c6ad6622bf4c0db17184 Mon Sep 17 00:00:00 2001 From: Documentation Updater Date: Thu, 18 Jun 2026 15:07:21 +0000 Subject: [PATCH] Updating documentation --- grpc/index.html | 12 + grpc/org.signal.chat.attachments.html | 172 + grpc/org.signal.chat.backup.html | 185 +- grpc/org.signal.chat.common.html | 380 ++ grpc/org.signal.chat.messages.html | 169 +- grpc/org.signal.chat.profile.html | 385 +- grpc/org.signal.chat.subscriptions.html | 4706 +++++++++++++++++++++++ grpc/search.html | 4 +- signal-server-openapi.yaml | 11 +- 9 files changed, 5452 insertions(+), 572 deletions(-) create mode 100644 grpc/org.signal.chat.subscriptions.html diff --git a/grpc/index.html b/grpc/index.html index 87e4d8bb1..52fcee68d 100644 --- a/grpc/index.html +++ b/grpc/index.html @@ -121,6 +121,11 @@ header. If provided, the request will fail with a BAD_AUTHENTICATIONA server-side resource was exhausted. The details field may include a RetryInfo message that includes the amount of time in seconds the client should wait before retrying the request.

If a RetryInfo is present, the client must wait the indicated time before retrying the request. If absent, the client should retry with an exponential backoff. +ABORTED +STREAM_CLOSED +The server terminated a streaming RPC for some domain specific reason. The details field must include a message with additional information about why the stream was closed. This message must be defined in the corresponding service proto for the streaming RPC. This status must only be returned from server-side streaming RPCs. Clients must handle a STREAM_CLOSED status even if no corresponding message is defined in the version of the proto they are targeting. Unless otherwise noted, if a stream termination message is defined, clients must handle the error at any point in the message stream. + + UNAVAILABLE UNAVAILABLE There was an internal error processing the RPC. The client should retry the request with exponential backoff. @@ -249,6 +254,13 @@ header. If provided, the request will fail with a BAD_AUTHENTICATION +

+ + org.signal.chat.subscriptions + +

+ +

org.signal.chat.tag diff --git a/grpc/org.signal.chat.attachments.html b/grpc/org.signal.chat.attachments.html index 1f5a90f8c..f0f33a8ba 100644 --- a/grpc/org.signal.chat.attachments.html +++ b/grpc/org.signal.chat.attachments.html @@ -80,6 +80,24 @@ +

+ + Message + GetStickerUploadFormRequest + +

+ + + +

+ + Message + GetStickerUploadFormResponse + +

+ + +

Message @@ -144,6 +162,26 @@

Retrieve an upload form that can be used to perform a resumable upload

+ + + @@ -160,6 +198,140 @@ +
+ + +

+ + message GetStickerUploadFormRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + sticker_count + + + + uint32 + +

The number of stickers in the sticker pack to upload

+ +
+ + + +
+ + +

+ + message GetStickerUploadFormResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + pack_id + + + + string + +

A randomly-generated ID for the new sticker pack

2 + manifest_upload_form + + + + org.signal.chat.common.S3UploadForm + + +

An upload form clients must use to upload a manifest for the sticker pack

3 + sticker_upload_forms + + + + repeated + + org.signal.chat.common.S3UploadForm + + +

Upload forms for individual stickers within the sticker pack

+ +
+ + + @@ -836,7 +847,9 @@ via DeleteMedia.

Delete media objects stored with this backup-id. Streams the locations of -media items back when the item has successfully been removed.

+media items back when the item has successfully been removed.

+

The response stream may be closed with STREAM_CLOSED error reason. In this +case, a BackupStreamClosed message will be present in the error details.

@@ -876,6 +889,75 @@ backups again, a public key must be resupplied.

+
+ + +

+ + message BackupStreamClosed + + + +

+ +
+

The reason why a media stream RPC is being prematurely closed by the server.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof reason +
+
+ 1 + + failed_authentication + + + + org.signal.chat.errors.FailedZkAuthentication + + +

The provided backup auth credential presentation could not be +authenticated. Either, the presentation could not be verified, or +the public key signature was invalid, or there is no backup associated +with the backup-id in the presentation.

+ +
+ + +
@@ -992,9 +1074,9 @@ backups again, a public key must be resupplied.

object_length - + - uint32 + uint64

The length of the source attachment before the encryption applied by the @@ -1203,29 +1285,6 @@ copy operation

3 - - failed_authentication - - - - - org.signal.chat.errors.FailedZkAuthentication - - - -

The provided backup auth credential presentation could not be -authenticated. Either, the presentation could not be verified, or -the public key signature was invalid, or there is no backup associated -with the backup-id in the presentation.

- - - - - - - - 4 - source_not_found @@ -1244,7 +1303,7 @@ with the backup-id in the presentation.

- 5 + 4 wrong_source_length @@ -1264,7 +1323,7 @@ with the backup-id in the presentation.

- 6 + 5 out_of_space @@ -1713,60 +1772,22 @@ with the backup-id in the presentation.

+ + 1 + + deleted_item + + + + + org.signal.chat.backup.DeleteMediaItem + + + + + + - - - - - -
- oneof response -
- - - - - - - 1 - - - deleted_item - - - - - org.signal.chat.backup.DeleteMediaItem - - - - - - - - - - - - 2 - - - failed_authentication - - - - - org.signal.chat.errors.FailedZkAuthentication - - - -

The provided backup auth credential presentation could not be -authenticated. Either, the presentation could not be verified, or -the public key signature was invalid, or there is no backup associated -with the backup-id in the presentation.

- - - diff --git a/grpc/org.signal.chat.common.html b/grpc/org.signal.chat.common.html index 4af5d1195..2b5baa2be 100644 --- a/grpc/org.signal.chat.common.html +++ b/grpc/org.signal.chat.common.html @@ -82,6 +82,24 @@ +

+ + Message + Badge + +

+ + + +

+ + Message + BadgeSvg + +

+ + +

Message @@ -111,6 +129,15 @@ +

+ + Message + S3UploadForm + +

+ + +

Message @@ -253,6 +280,216 @@ empty if no username is associated with the identified account.

+
+ + +

+ + message Badge + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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 + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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.

+ +
+ + +
@@ -487,6 +724,149 @@ 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

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
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.

+ +
+ + +
diff --git a/grpc/org.signal.chat.messages.html b/grpc/org.signal.chat.messages.html index 05e3ae1c4..3f1e22715 100644 --- a/grpc/org.signal.chat.messages.html +++ b/grpc/org.signal.chat.messages.html @@ -123,6 +123,15 @@ +

+ + Message + GetMessagesStreamClosed + +

+ + +

Message @@ -259,15 +268,6 @@

- -

- - Message - Terminated - -

- -

@@ -377,8 +377,11 @@ has been processed (an ack). Acks should only be sent for messages delivered via the currently open RPC.

Only the first GetMessagesRequest may contain request parameters that configure the stream. The first request must not contain an ack.

-

The server will keep the stream open until the client disconnects or the -connection is displaced as indicated by a Terminated response.

+

The server will keep the stream open until the client disconnects. Only +one GetMessages stream may be open per device. If a second GetMessages +stream is opened, the server may terminate any of the streams with +a STREAM_CLOSED error reason. A GetMessagesStreamClosed message will be +present in the error details.

@@ -816,23 +819,68 @@ to deliver newly arrived messages.

+ + + + +
+ + + +
+ + +

+ + message GetMessagesStreamClosed + + + +

+ +
+

The reason why a GetMessages RPC is being closed by the server.

+
+ + + + + + + + + + + + + + + + + + + + - + @@ -2249,93 +2297,6 @@ delivery channel with a Signal server

- -
- - -

- - message Terminated - -
(Nested in org.signal.chat.messages.GetMessagesResponse - ) - -
- -

- -
-

The reason why a GetMessages RPC is being closed by the server.

-
- -
FieldTypeDescription
+
+ oneof reason +
+
- 3 + 1 - terminated + conflicting_stream - + - org.signal.chat.messages.GetMessagesResponse.Terminated - + google.protobuf.Empty

Indicates that the stream is about to be closed.

Another caller has opened a GetMessages stream for the same device.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
-
- oneof reason -
-
- 1 - - reauthentication_required - - - - google.protobuf.Empty - -

The account's credentials have been updated and the caller must reauthenticate.

- 2 - - conflicting_stream - - - - google.protobuf.Empty - -

Another caller has opened a GetMessages stream for the same device.

- -
- - diff --git a/grpc/org.signal.chat.profile.html b/grpc/org.signal.chat.profile.html index 1c61d49d5..d50f5e5e5 100644 --- a/grpc/org.signal.chat.profile.html +++ b/grpc/org.signal.chat.profile.html @@ -87,24 +87,6 @@ -

- - Message - Badge - -

- - - -

- - Message - BadgeSvg - -

- - -

Message @@ -258,15 +240,6 @@ -

- - Message - ProfileAvatarUploadAttributes - -

- - -

Message @@ -510,216 +483,6 @@ methods in Profile instead.

-
- - -

- - message Badge - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
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.profile.BadgeSvg - - -

Pairs of light/dark SVG files designed for display at different sizes.

- -
- - - -
- - -

- - message BadgeSvg - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
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.

- -
- - -
@@ -1548,11 +1311,11 @@ the request.

badges - + repeated - org.signal.chat.profile.Badge + org.signal.chat.common.Badge @@ -2231,146 +1994,6 @@ due to a disallowed country prefix on the account's phone number.

-
- - -

- - message ProfileAvatarUploadAttributes - - - -

- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FieldTypeDescription
1 - path - - - - string - -

The S3 upload path for the profile's avatar.

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 avatar object.

4 - algorithm - - - - string - -

The algorithm used to calculate a signature on the S3 policy.

5 - date - - - - string - -

The timestamp at which the S3 policy and signature were generated.

6 - policy - - - - string - -

The S3 policy used to upload the avatar object.

7 - signature - - - - bytes - -

A digital signature on the S3 policy.

- -
- - -
@@ -2756,11 +2379,11 @@ field number without serialization overhead. This is purely aesthetic.

v1_avatar_upload_form - + optional - org.signal.chat.profile.ProfileAvatarUploadAttributes + org.signal.chat.common.S3UploadForm diff --git a/grpc/org.signal.chat.subscriptions.html b/grpc/org.signal.chat.subscriptions.html new file mode 100644 index 000000000..cf43219b3 --- /dev/null +++ b/grpc/org.signal.chat.subscriptions.html @@ -0,0 +1,4706 @@ + + + + + + Protobuf module documentation + + + + + + +
+ +
+ +
+

+ ← Back to packages +

+

+ + Package org.signal.chat.subscriptions + +

+ +
+ +

+ + Service + Subscriptions + +

+ + + + +

+ + Message + AmountList + +

+ + + +

+ + Message + AppStorePurchase + +

+ + + +

+ + Message + BackupConfiguration + +

+ + + +

+ + Message + BackupLevelConfiguration + +

+ + + + + +

+ + Message + Badge + +

+ + + +

+ + Message + BraintreePaymentMethod + +

+ + + +

+ + Message + ChargeFailure + +

+ + + +

+ + Message + CreatePayPalPaymentMethodRequest + +

+ + + +

+ + Message + CreatePayPalPaymentMethodResponse + +

+ + + +

+ + Message + CreatePayPalPaymentMethodResult + +

+ + + +

+ + Message + CreatePaymentMethodRequest + +

+ + + +

+ + Message + CreatePaymentMethodResponse + +

+ + + +

+ + Message + CreatePaymentMethodResult + +

+ + + + + +

+ + Message + CurrencyConfiguration + +

+ + + +

+ + Message + DeleteSubscriberRequest + +

+ + + +

+ + Message + DeleteSubscriberResponse + +

+ + + +

+ + Message + GetBankMandateRequest + +

+ + + +

+ + Message + GetBankMandateResponse + +

+ + + +

+ + Message + GetConfigurationRequest + +

+ + + +

+ + Message + GetConfigurationResponse + +

+ + + +

+ + Message + GetReceiptCredentialsRequest + +

+ + + +

+ + Message + GetReceiptCredentialsResponse + +

+ + + +

+ + Message + GetReceiptCredentialsResult + +

+ + + +

+ + Message + GetSubscriptionInformationRequest + +

+ + + +

+ + Message + GetSubscriptionInformationResponse + +

+ + + +

+ + Message + LevelConfiguration + +

+ + + + + + + + + +

+ + Message + PaymentRequired + +

+ + + +

+ + Message + PlayBillingPurchase + +

+ + + +

+ + Message + SepaPaymentMethod + +

+ + + +

+ + Message + SetDefaultPaymentMethodRequest + +

+ + + +

+ + Message + SetDefaultPaymentMethodResponse + +

+ + + +

+ + Message + SetIapSubscriptionRequest + +

+ + + +

+ + Message + SetIapSubscriptionResponse + +

+ + + +

+ + Message + SetIapSubscriptionResult + +

+ + + +

+ + Message + SetSubscriptionLevelRequest + +

+ + + +

+ + Message + SetSubscriptionLevelResponse + +

+ + + +

+ + Message + SetSubscriptionLevelResult + +

+ + + +

+ + Message + StripePaymentMethod + +

+ + + +

+ + Message + Subscription + +

+ + + + + +

+ + Message + UpdateSubscriberRequest + +

+ + + +

+ + Message + UpdateSubscriberResponse + +

+ + + + +

+ + Enum + BankTransferType + +

+ +

+ + Enum + PaymentMethod + +

+ +

+ + Enum + PaymentProvider + +

+ +

+ + Enum + SubscriptionStatus + +

+ +
+ +
+ +
+ + + +
+

+ Services +

+ + +
+ + +

+ service Subscriptions + +

+ +
+

+
+ + +
+ + + +
+

Subscribers MUST periodically hit this endpoint to update the access time on the subscription record. Subscribers + SHOULD attempt to make an update call approximately every 3 days. Not accessing this endpoint for an extended + period of time will result in the subscription being canceled.

+
+ +
+ +
+ + + +
+

Cancels any current subscription at the end of the current subscription period.

+

Note: Apple IAP subscriptions do not support server-side cancellation, so this method should only be called after +cancelling a subscription from storekit to keep server data up to date.

+
+ +
+ +
+ + + +
+

Returns a client secret that can be used to set up a new payment method with the payment processor.

+
+ +
+ +
+ + + +
+

Returns a PayPal billing agreement approval URL and token that can be used to set up PayPal as a payment method.

+
+ +
+ + + +
+ + + +
+

Sets the subscription level and currency for a subscriber.

+
+ +
+ +
+ + + +
+

Returns information about the current subscription associated with the provided subscriberId if one exists.

+

Although it uses Stripe's values, +the status field in the response is generic, with Braintree-specific values mapped +to Stripe's. Since we don't support trials or unpaid subscriptions, the associated statuses will never be returned +by the API.

+
+ +
+ +
+ + + +
+

Create a receipt from a valid payment invoice that can be used to obtain an entitlement

+

This request is repeatable so long as the ReceiptCredentialRequest remains the same. Clients should use the same +ReceiptCredentialRequest value until they attempt to redeem the resulting ReceiptCredentialPresentation. After +this point, the ReceiptCredentialRequest MUST NOT be reused or you may not be able to redeem a valid payment +invoice. Clients SHOULD retry requests at this endpoint with the same ReceiptCredentialRequest value until +receiving a response. After receiving a response, clients should then compute the ReceiptCredentialPresentation +and redeem it at the receipt redemption endpoint. Once the first attempt is made there, the same +ReceiptCredentialRequest MUST NOT be used again to request receipt credentials.

+

Note that you may in fact redeem TWO or more invoices for the same ReceiptCredentialRequest while retrying this +operation if a later invoice gets paid while you are retrying. However, the returned receipt is always for the +latest invoice, so it will have the latest expiration possible and no entitlement time will be lost. The important +thing is not to reuse ReceiptCredentialRequest after you have started attempting to redeem the associated +ReceiptCredentialPresentation. Then you may produce a ReceiptCredentialPresentation for a later invoice that +cannot be redeemed.

+

Clients MUST validate that the generated receipt credential's level and expiration matches their expectations.

+
+ +
+ +
+ + + +
+

Set a token that represents an IAP subscription made with App Store/Google Play Billing.

+

To set up an App Store subscription: +1. Create a subscriber with UpdateSubscriber (you must regularly refresh this subscriber) +2. Create a subscription with the App Store + directly via StoreKit and obtain a originalTransactionId. +3. Call this RPC with the originalTransactionId +4. Obtain a receipt via GetReceiptCredentials which can then be used to obtain the + entitlement

+

Play Billing: Set a purchaseToken that represents an IAP subscription made with Google Play Billing.

+

To set up a subscription with Google Play Billing: +1. Create a subscriber with UpdateSubscriber (you must regularly refresh this subscriber) +2. Create a subscription with Google Play Billing + directly and obtain a purchaseToken. Do not acknowledge + the purchaseToken. +3. Call this RPC with the purchaseToken +4. Obtain a receipt via GetReceiptCredentials which can then be used to obtain the + entitlement

+

After calling this method, the payment is confirmed. Callers must durably store their subscriberId before calling +this method to ensure their payment is tracked.

+

Once a purchaseToken to is posted to a subscriberId, the same subscriberId must not be used with another payment +method. A different playbilling purchaseToken can be posted to the same subscriberId, in this case the subscription +associated with the old purchaseToken will be cancelled.

+
+ +
+ +
+ + + +
+

Returns all configuration for badges, donation subscriptions, backup subscriptions, and one-time donation ( +"boost" and "gift") minimum and suggested amounts.

+
+ +
+ +
+ + + +
+

Returns a localized bank mandate for the specified bank transfer type

+
+ +
+ +
+ +
+ + + + + +

+ Messages +

+ + + +
+ + +

+ + message AmountList + +
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + amounts + + + + repeated + + string + +

NOTE: this is a string instead of a numeric type because it is intended +for display purposes only

+ +
+ + + +
+ + +

+ + message AppStorePurchase + +
(Nested in org.signal.chat.subscriptions.SetIapSubscriptionRequest + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + original_transaction_id + + + + string + +
+ +
+ + + +
+ + +

+ + message BackupConfiguration + +
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + levels + + + + map<uint64, BackupLevelConfiguration> + +

A map of numeric backup level IDs to level-specific backup configuration

2 + free_tier_media_days + + + + uint64 + +

The number of days of media a free tier backup user gets

+ +
+ + + +
+ + +

+ + message BackupLevelConfiguration + +
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse + ) + +
+ +

+ +
+

Configuration for a backup level - use to present appropriate client interfaces

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + storage_allowance_bytes + + + + uint64 + +

The amount of media storage in bytes that a paying subscriber may store

2 + play_product_id + + + + string + +

The play billing productID associated with this backup level

3 + media_ttl_days + + + + uint64 + +

The duration, in days, for which your backed up media is retained on the server after you stop refreshing with a paid credential

+ +
+ + + + + +
+ + +

+ + message Badge + +
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + badge + + + + org.signal.chat.common.Badge + + +
2 + duration_seconds + + + + optional + + uint64 + +

Present only for one-time (purchasable) badges

+ +
+ + + +
+ + +

+ + message BraintreePaymentMethod + +
(Nested in org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + paymentMethodToken + + + + string + +
+ +
+ + + +
+ + +

+ + message ChargeFailure + + + +

+ +
+

Meaningfully interpreting chargeFailure response fields requires inspecting the processor field first.

+

For Stripe, code will be one of the codes defined here, +while message may contain a further textual description. +The outcome fields are optional, but present values will directly map to Stripe response properties

+

For Braintree, the outcome fields will be null. The code and message will contain one of + - a processor decline code (as a string) in code, and associated text in message, as defined this table + - gateway in code, with a reason in message + - code = "unknown", message = "unknown"

+

IAP payment processors will never include charge failure information, and detailed order information should be +retrieved from the payment processor directly

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + processor + + + + org.signal.chat.subscriptions.PaymentProvider + + +
2 + code + + + + string + +

See Stripe failure codes or +Braintree decline codes +depending on which processor was used

3 + message + + + + string + +

See Stripe failure codes or +Braintree decline codes +depending on which processor was used

4 + outcome_network_status + + + + optional + + string + +

See Outcome Network Status

5 + outcome_reason + + + + optional + + string + +

See Outcome Reason

6 + outcome_type + + + + optional + + string + +

See Outcome Type

+ +
+ + + +
+ + +

+ + message CreatePayPalPaymentMethodRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
2 + returnUrl + + + + string + +

a callback URL (e.g. an in-client URL handler) for when the user approved the payment

3 + cancelUrl + + + + string + +

a callback URL (e.g. an in-client URL handler) for when the user did not approve the payment

+ +
+ + + +
+ + +

+ + message CreatePayPalPaymentMethodResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + result + + + + org.signal.chat.subscriptions.CreatePayPalPaymentMethodResponse.CreatePayPalPaymentMethodResult + + +
+ 2 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 3 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ 4 + + subscription_processor_conflict + + + + org.signal.chat.errors.FailedPrecondition + + +

New payment processor does not match existing processor associated with the subscription

+ +
+ + + +
+ + +

+ + message CreatePayPalPaymentMethodResult + +
(Nested in org.signal.chat.subscriptions.CreatePayPalPaymentMethodResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + approvalUrl + + + + string + +

a URL to open where the user may approve the payment

2 + token + + + + string + +

an opaque PayPal payment identifier to use with SetDefaultPaymentMethodRequest

+ +
+ + + +
+ + +

+ + message CreatePaymentMethodRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +

Only PAYMENT_METHOD_CARD, PAYMENT_METHOD_SEPA_DEBIT, and PAYMENT_METHOD_IDEAL are supported; +other values will result in an INVALID_ARGUMENT error.

2 + paymentMethod + + + + org.signal.chat.subscriptions.PaymentMethod + + +
+ +
+ + + +
+ + +

+ + message CreatePaymentMethodResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + result + + + + org.signal.chat.subscriptions.CreatePaymentMethodResponse.CreatePaymentMethodResult + + +
+ 2 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 3 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ 4 + + subscription_processor_conflict + + + + org.signal.chat.errors.FailedPrecondition + + +

New payment processor does not match existing processor associated with the subscription

+ +
+ + + +
+ + +

+ + message CreatePaymentMethodResult + +
(Nested in org.signal.chat.subscriptions.CreatePaymentMethodResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + clientSecret + + + + string + +
2 + paymentProvider + + + + org.signal.chat.subscriptions.PaymentProvider + + +
+ +
+ + + + + +
+ + +

+ + message CurrencyConfiguration + +
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + minimum + + + + string + +

Minimum one-time donation +NOTE: this is a string instead of a numeric type because it is intended +for display purposes only

2 + one_time + + + + map<uint64, AmountList> + +

Map of one-time donation level IDs to suggested amounts

3 + subscription + + + + map<uint64, string> + +

Map of subscription level IDs to the amount charged

4 + backup_subscription + + + + map<uint64, string> + +

Map of backup subscription level IDs to the amount charged

5 + supported_payment_methods + + + + repeated + + org.signal.chat.subscriptions.PaymentMethod + + +
+ +
+ + + +
+ + +

+ + message DeleteSubscriberRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
+ +
+ + + +
+ + +

+ + message DeleteSubscriberResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + success + + + + google.protobuf.Empty + +
+ 2 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 3 + + cannot_cancel_subscription + + + + org.signal.chat.errors.FailedPrecondition + + +

The associated subscription is not a type that can be cancelled by the server. Cancel client-side, and then retry.

+ +
+ + + +
+ + +

+ + message GetBankMandateRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + bank_transfer_type + + + + org.signal.chat.subscriptions.BankTransferType + + +
+ +
+ + + +
+ + +

+ + message GetBankMandateResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + mandate + + + + string + +
+ +
+ + + +
+ + +

+ + message GetConfigurationRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + +
FieldTypeDescription
+ +
+ + + +
+ + +

+ + message GetConfigurationResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + currencies + + + + map<string, CurrencyConfiguration> + +

Map of lower-cased ISO 3 currency codes to currency-specific configuration

2 + levels + + + + map<uint64, LevelConfiguration> + +

Map of numeric donation level IDs to level-specific badge configuration

3 + backup + + + + org.signal.chat.subscriptions.GetConfigurationResponse.BackupConfiguration + + +
4 + sepa_maximum_euros + + + + string + +

Maximum value of a one-time SEPA donation

+ +
+ + + +
+ + +

+ + message GetReceiptCredentialsRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
2 + receiptCredentialRequest + + + + bytes + +
+ +
+ + + +
+ + +

+ + message GetReceiptCredentialsResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + success + + + + org.signal.chat.subscriptions.GetReceiptCredentialsResponse.GetReceiptCredentialsResult + + +
+ 2 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 3 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ 4 + + no_paid_invoice + + + + org.signal.chat.errors.FailedPrecondition + + +

No invoice has been issued for this subscription OR invoice is in 'draft' or 'open' state

+ 5 + + payment_required + + + + org.signal.chat.subscriptions.GetReceiptCredentialsResponse.PaymentRequired + + +

Invoice is in any state other than 'draft', 'open', or 'paid'; Charge failure details may be present

+ 6 + + already_redeemed + + + + org.signal.chat.errors.FailedPrecondition + + +

Latest paid receipt on subscription was already redeemed for a receipt credential but with a different GetReceiptCredentialRequest

+ +
+ + + +
+ + +

+ + message GetReceiptCredentialsResult + +
(Nested in org.signal.chat.subscriptions.GetReceiptCredentialsResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + receiptCredentialResponse + + + + bytes + +
+ +
+ + + +
+ + +

+ + message GetSubscriptionInformationRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
+ +
+ + + +
+ + +

+ + message GetSubscriptionInformationResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + success + + + + org.signal.chat.subscriptions.GetSubscriptionInformationResponse.Subscription + + +
+ 2 + + no_subscription + + + + google.protobuf.Empty + +
+ 3 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 4 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ +
+ + + +
+ + +

+ + message LevelConfiguration + +
(Nested in org.signal.chat.subscriptions.GetConfigurationResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + badge + + + + org.signal.chat.subscriptions.GetConfigurationResponse.Badge + + +
+ +
+ + + + + + + + + +
+ + +

+ + message PaymentRequired + +
(Nested in org.signal.chat.subscriptions.GetReceiptCredentialsResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + charge_failure + + + + optional + + org.signal.chat.subscriptions.ChargeFailure + + +
+ +
+ + + +
+ + +

+ + message PlayBillingPurchase + +
(Nested in org.signal.chat.subscriptions.SetIapSubscriptionRequest + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + purchase_token + + + + string + +
+ +
+ + + +
+ + +

+ + message SepaPaymentMethod + +
(Nested in org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + setupIntentId + + + + string + +
+ +
+ + + +
+ + +

+ + message SetDefaultPaymentMethodRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
+
+ oneof request +
+
+ 2 + + stripe + + + + org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest.StripePaymentMethod + + +
+ 3 + + braintree + + + + org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest.BraintreePaymentMethod + + +
+ 4 + + sepa + + + + org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest.SepaPaymentMethod + + +
+ +
+ + + +
+ + +

+ + message SetDefaultPaymentMethodResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + success + + + + google.protobuf.Empty + +
+ 2 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 3 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ 4 + + payment_method_not_set_up + + + + org.signal.chat.errors.FailedPrecondition + + +
+ +
+ + + +
+ + +

+ + message SetIapSubscriptionRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
+
+ oneof request +
+
+ 2 + + app_store + + + + org.signal.chat.subscriptions.SetIapSubscriptionRequest.AppStorePurchase + + +
+ 3 + + play_billing + + + + org.signal.chat.subscriptions.SetIapSubscriptionRequest.PlayBillingPurchase + + +
+ +
+ + + +
+ + +

+ + message SetIapSubscriptionResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + success + + + + org.signal.chat.subscriptions.SetIapSubscriptionResponse.SetIapSubscriptionResult + + +
+ 2 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 3 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ 4 + + subscription_processor_conflict + + + + org.signal.chat.errors.FailedPrecondition + + +

New payment processor does not match existing processor associated with the subscription

+ 5 + + payment_required + + + + org.signal.chat.errors.FailedPrecondition + + +
+ 6 + + invalid_transaction + + + + org.signal.chat.errors.FailedPrecondition + + +
+ +
+ + + +
+ + +

+ + message SetIapSubscriptionResult + +
(Nested in org.signal.chat.subscriptions.SetIapSubscriptionResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + level + + + + uint64 + +
+ +
+ + + +
+ + +

+ + message SetSubscriptionLevelRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
2 + level + + + + uint64 + +
3 + currency + + + + string + +
4 + idempotencyKey + + + + string + +
+ +
+ + + +
+ + +

+ + message SetSubscriptionLevelResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + success + + + + org.signal.chat.subscriptions.SetSubscriptionLevelResponse.SetSubscriptionLevelResult + + +
+ 2 + + subscriber_not_found + + + + org.signal.chat.errors.NotFound + + +
+ 3 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ 4 + + subscription_processor_conflict + + + + org.signal.chat.errors.FailedPrecondition + + +

New payment processor does not match existing processor associated with the subscription

+ 5 + + payment_method_not_set_up + + + + org.signal.chat.errors.FailedPrecondition + + +
+ 6 + + unsupported_operation + + + + org.signal.chat.errors.FailedPrecondition + + +

The payment processor does not support this operation

+ 7 + + unsupported_level + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested level was invalid

+ 8 + + unsupported_currency + + + + org.signal.chat.errors.FailedPrecondition + + +

The requested currency was invalid

+ 9 + + payment_requires_action + + + + org.signal.chat.errors.FailedPrecondition + + +

The card could not be charged

+ 10 + + invalid_level_transition + + + + org.signal.chat.errors.FailedPrecondition + + +

Cannot transition from existing level to the requested level

+ 11 + + invalid_idempotency_key + + + + org.signal.chat.errors.FailedPrecondition + + +

The idempotency key was invalid or re-used with a modified request

+ 12 + + charge_failure + + + + org.signal.chat.subscriptions.ChargeFailure + + +

The payment failed; see charge failure details

+ +
+ + + +
+ + +

+ + message SetSubscriptionLevelResult + +
(Nested in org.signal.chat.subscriptions.SetSubscriptionLevelResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + level + + + + uint64 + +
+ +
+ + + +
+ + +

+ + message StripePaymentMethod + +
(Nested in org.signal.chat.subscriptions.SetDefaultPaymentMethodRequest + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + paymentMethodToken + + + + string + +
+ +
+ + + +
+ + +

+ + message Subscription + +
(Nested in org.signal.chat.subscriptions.GetSubscriptionInformationResponse + ) + +
+ +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + level + + + + uint64 + +

The subscription level

2 + billing_cycle_anchor + + + + optional + + uint64 + +

If present, UNIX Epoch Timestamp in seconds, can be used to calculate next billing date.

3 + end_of_current_period + + + + uint64 + +

UNIX Epoch Timestamp in seconds, when the current subscription period ends

4 + active + + + + bool + +

Whether there is a currently active subscription

5 + cancel_at_period_end + + + + bool + +

If true, an active subscription will not auto-renew at the end of the current period

6 + currency + + + + string + +

A three-letter ISO 4217 currency code for currency used in the subscription

7 + amount + + + + uint64 + +

The amount paid for the subscription in the currency's smallest unit

8 + status + + + + org.signal.chat.subscriptions.SubscriptionStatus + + +

The subscription's status, mapped to Stripe's statuses. trialing will never be returned

9 + processor + + + + org.signal.chat.subscriptions.PaymentProvider + + +

The payment provider associated with the subscription

10 + payment_method + + + + org.signal.chat.subscriptions.PaymentMethod + + +

The payment method associated with the subscription

11 + payment_processing + + + + bool + +

Whether the latest charge for the subscription is in a non-terminal state

12 + charge_failure + + + + optional + + org.signal.chat.subscriptions.ChargeFailure + + +

if present, contains information that may be interpreted to help the user fix a failure

+ +
+ + + + + +
+ + +

+ + message UpdateSubscriberRequest + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
1 + subscriberId + + + + bytes + +
+ +
+ + + +
+ + +

+ + message UpdateSubscriberResponse + + + +

+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeDescription
+
+ oneof response +
+
+ 1 + + success + + + + google.protobuf.Empty + +
+ 2 + + subscriber_id_mismatch + + + + org.signal.chat.errors.FailedUnidentifiedAuthorization + + +

subscriberId authentication failure

+ +
+ + + + + + + +

+ Enums +

+ + +
+

+ enum BankTransferType + +

+ +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + +
NameNumberDescription
BANK_TRANSFER_TYPE_UNKNOWN0
BANK_TRANSFER_TYPE_SEPA_DEBIT1
+
+ +
+

+ enum PaymentMethod + +

+ +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameNumberDescription
PAYMENT_METHOD_UNKNOWN0
PAYMENT_METHOD_CARD1

A credit card or debit card, including those from Apple Pay and Google Pay

PAYMENT_METHOD_SEPA_DEBIT2

A SEPA debit account

PAYMENT_METHOD_IDEAL3

An iDEAL account

PAYMENT_METHOD_PAYPAL4

A PayPal account

PAYMENT_METHOD_GOOGLE_PLAY_BILLING5
PAYMENT_METHOD_APPLE_APP_STORE6
+
+ +
+

+ enum PaymentProvider + +

+ +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameNumberDescription
PAYMENT_PROVIDER_UNKNOWN0
PAYMENT_PROVIDER_STRIPE1
PAYMENT_PROVIDER_BRAINTREE2
PAYMENT_PROVIDER_GOOGLE_PLAY_BILLING3
PAYMENT_PROVIDER_APPLE_APP_STORE4
+
+ +
+

+ enum SubscriptionStatus + +

+ +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameNumberDescription
SUBSCRIPTION_STATUS_UNKNOWN0
SUBSCRIPTION_STATUS_ACTIVE1

The subscription is in good standing and the most recent payment was successful.

SUBSCRIPTION_STATUS_INCOMPLETE2

Payment failed when creating the subscription, or the subscription's start date is in the future.

SUBSCRIPTION_STATUS_PAST_DUE3

Payment on the latest renewal failed but there are processor retries left, or payment wasn't attempted.

SUBSCRIPTION_STATUS_CANCELED4

The subscription has been canceled.

SUBSCRIPTION_STATUS_UNPAID5

The latest renewal hasn't been paid but the subscription remains in place.

+
+ + + + +
+ + + + \ No newline at end of file diff --git a/grpc/search.html b/grpc/search.html index 3a546b261..91bb9a076 100644 --- a/grpc/search.html +++ b/grpc/search.html @@ -60,8 +60,8 @@