feat(catalog): add loyalty tier fields to egress catalog API - #28
Merged
Merged
Conversation
dinosoeren
marked this pull request as ready for review
June 18, 2026 05:59
dinosoeren
force-pushed
the
scout/feat/STORE-312-egress-freeitem-tier-id
branch
from
June 18, 2026 06:10
5e18a59 to
1be5ea1
Compare
dinosoeren
force-pushed
the
scout/feat/STORE-312-egress-freeitem-tier-id
branch
from
June 18, 2026 07:21
1be5ea1 to
f02d889
Compare
dinosoeren
force-pushed
the
scout/feat/STORE-312-egress-freeitem-tier-id
branch
2 times, most recently
from
June 25, 2026 20:31
314a255 to
d3693d7
Compare
dinosoeren
force-pushed
the
scout/feat/STORE-312-egress-freeitem-tier-id
branch
from
July 1, 2026 03:26
d3693d7 to
5957369
Compare
dinosoeren
force-pushed
the
scout/feat/STORE-312-egress-freeitem-tier-id
branch
from
July 8, 2026 05:06
5957369 to
6b8724b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds optional loyalty-tier fields to the egress catalog API so a game backend can serve tier-aware catalogs (e.g. a tier-based daily gift) without resolving the player's tier itself.
Response —
FreeItem:target_tier_id(9): identifier of the loyalty tier a free item targets. For a locked preview of the next tier's reward, return the item with statusLOCKEDand the next tier's id.Request —
GetCatalogRequest:current_tier_id(7): the player's current loyalty tier, resolved by Stash when a loyalty program is enabled.next_tier_id(8): the tier directly above the current one (absent at the top tier), for returning a locked preview of the next tier's reward.All fields are optional and additive (
buf breakingclean vsmain). Regenerateddocs/gen/swagger.v1.json.Note
Low Risk
Additive, optional protobuf/OpenAPI changes only; no runtime logic in this diff.
Overview
Extends the egress Get Catalog contract so tier-based free rewards (e.g. daily gifts) can be built without the game backend resolving loyalty tiers.
Request — optional query fields
currentTierIdandnextTierId: Stash supplies the player’s current tier and the tier above (when not at max), so the game can pick the right bundle and optionally show a locked preview of the next tier’s reward.Response — optional
targetTierIdon FreeItem: tags which tier a free item belongs to; locked next-tier previews should use statusLOCKEDwith that tier id.docs/gen/swagger.v1.jsonis regenerated to match the proto changes. All fields are optional and additive.Reviewed by Cursor Bugbot for commit 6b8724b. Bugbot is set up for automated code reviews on this repo. Configure here.