Skip to content

feat(billing): Define auto top-up config protos - #504

Merged
volokluev merged 2 commits into
mainfrom
volo/auto-top-up-config-protos
Nov 5, 2026
Merged

volokluev merged 2 commits into
mainfrom
volo/auto-top-up-config-protos

Conversation

@volokluev

@volokluev volokluev commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Seer wallet auto top-up needs somewhere to store each organization's settings. This defines only that:

  • AutoTopUpConfig: enabled, threshold_credits, top_up_credits and daily_cap_credits, keyed by organization and Wallet (only WALLET_SEER for now). Every amount is in credits before tax.
  • GetAutoTopUpConfig: returns no config when the organization never saved one.
  • UpsertAutoTopUpConfig: replaces the config or creates it.

The config doesn't record whether a top-up is running or failed. The off-cycle invoices that buy the credit already record that.

The getsentry side that stores and edits the config is getsentry/getsentry#22990. The top-up job's protos (listing enabled configs, the idempotency key, the wallet balance) stay in #495, which will drop these files once this merges.

Seer wallet auto top-up needs somewhere to store the customer's
settings: whether it's on, the threshold, the credits each top-up
buys, and a daily cap. All are in credits before tax.

This adds the AutoTopUpConfig message and the endpoints to read and
replace it. The top-up job's protos come separately.
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 5, 2026, 10:02 PM

@volokluev
volokluev marked this pull request as ready for review November 5, 2026 22:10
@volokluev
volokluev requested a review from a team as a code owner November 5, 2026 22:10
@volokluev
volokluev merged commit a45d260 into main Nov 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants