[api] add xp boost stub endpoint

This commit is contained in:
Devin Zuczek
2026-10-15 15:01:21 -04:00
parent e225a8a2f1
commit 972432d4d3
3 changed files with 50 additions and 0 deletions
+18
View File
@@ -326,6 +326,24 @@ export const ProgressionEventRecordDto = z.object({
LimitedRewardCollectionState: z.int(),
})
/**
* One XP boost a player bought and has running, as `GET /api/purchasableXpBoosts/activations`
* lists it. Documented from the reference shape; nothing here sells or stores boosts yet.
*/
export const XpBoostActivationDto = z.object({
PurchasableXpBoostLedgerEntryId: z.int().describe('The purchase this activation came from'),
PurchasableXpBoostId: z.string().describe('GUID of the boost product bought'),
XpMultiplier: z.number().describe('XP is multiplied by this while the boost runs, e.g. 2.0'),
StartTime: z.string().describe('ISO-8601 UTC'),
EndTime: z.string().describe('ISO-8601 UTC'),
})
/** `GET /api/purchasableXpBoosts/activations` — a paged list of the caller's active boosts. */
export const XpBoostActivationsResponse = z.object({
Results: XpBoostActivationDto.array(),
TotalResults: z.int().describe('The number of entries in `Results`'),
})
/**
* The form body of `POST /api/PlayerCheer/v1/create`. Nothing here is stored beyond the
* counter the cheer increments: `Anonymous` is spent on the notification it triggers and