[ai] fix stub endpoint

This commit is contained in:
Devin Zuczek
2026-08-20 18:27:42 -04:00
parent 038e3b3c50
commit e47ce58db3
3 changed files with 41 additions and 30 deletions
+10 -5
View File
@@ -113,12 +113,17 @@ export const GameAiSpendSummaryDenied = GameAiAccessDenied.extend({
})
/**
* `GET /makerai/user/access` — a BARE JSON boolean, not an envelope and not a `{ value }`
* wrapper. The whole body is the answer.
* `GET /makerai/user/access` — always granted, in an envelope that belongs to this endpoint
* alone: PascalCase `Success`/`Error` beside a snake_case `error_id`, and no `value` slot.
* It is neither the Game AI refusal's all-lowercase body nor the Roomie check's
* `{ success, error_id, error, value }`. Reproduced as the reference sends it — the casing
* mix is not a typo to normalise.
*/
export const MakerAiAccessResponse = z
.boolean()
.describe('Whether the caller may use Maker AI; always false — no model runs here')
export const MakerAiAccessResponse = z.object({
Success: z.boolean().describe('Whether the caller may use Maker AI. Always true'),
Error: z.null().describe('The failure message. Null — the check always passes'),
error_id: z.null().describe('The failure code. Null — the check always passes'),
})
/**
* Maker AI's dollar balances. A FLAT body — no `{ success, error, value }` envelope — and