diff --git a/src/api/info/_methods/legalCheck.ts b/src/api/info/_methods/legalCheck.ts index ae45f2d4..f517d04c 100644 --- a/src/api/info/_methods/legalCheck.ts +++ b/src/api/info/_methods/legalCheck.ts @@ -30,11 +30,13 @@ export type LegalCheckResponse = { /** Whether the user is allowed to use the platform. */ userAllowed: boolean; /** - * Restriction code. - * - * FIXME: meaning of `"n"` / `"a"` unconfirmed. + * Restriction code: + * - `"n"`: No restrictions. + * - `"a"`: Platform actions are blocked. + * - `"o"`: Outcome markets are hidden. + * - `"u"`: Restricted as a UK user. */ - restrictions?: "n" | "a"; + restrictions: "n" | "a" | "o" | "u"; }; // ============================================================ diff --git a/tests/api/info/legalCheck.test.ts b/tests/api/info/legalCheck.test.ts index a32a3803..ee6874a5 100644 --- a/tests/api/info/legalCheck.test.ts +++ b/tests/api/info/legalCheck.test.ts @@ -14,15 +14,16 @@ runTest({ codeTestFn: async (_t, client) => { const params: LegalCheckParameters[] = [ { user: "0x563C175E6f11582f65D6d9E360A618699DEe14a9" }, + { user: "0x0000000000000000000000000000000000000001" }, // acceptedTerms/userAllowed = false ]; const data = await Promise.all(params.map((p) => client.legalCheck(p))); schemaCoverage(paramsSchema, params); schemaCoverage(responseSchema, data, [ - "#/properties/restrictions/missing", - "#/properties/restrictions/enum/0", "#/properties/restrictions/enum/1", + "#/properties/restrictions/enum/2", + "#/properties/restrictions/enum/3", ]); }, });