[econ] influencer endpoint

This commit is contained in:
Devin Zuczek
2026-08-24 18:16:50 -04:00
parent f1e960f950
commit 0f281db32e
3 changed files with 98 additions and 32 deletions
+12
View File
@@ -226,6 +226,18 @@ export const InfluencerIdsResponse = z.object({
.describe('Account ids in the partner program. Empty — no programme runs here'),
})
/**
* `GET /api/influencerpartnerprogram/influencer` and `…/myinfluencer` — one account's
* standing in the partner program.
*
* A BARE NUMBER, not an object: the body is the literal `0`, which is the "not an
* influencer" tier. Nobody on this server is one, so 0 is the answer for every account, the
* caller's own included.
*/
export const InfluencerTierResponse = z
.literal(0)
.describe('The account’s partner tier. Always 0 — nobody here is an influencer')
/**
* `GET /api/incentivizedreferrals/progress` — how far the caller has got with the
* refer-a-friend rewards: how many referrals have been verified, and which rewards they