feat: complete TASK-WP0-03 browser gate

This commit is contained in:
suyx
2026-07-27 18:23:20 +08:00
parent dbe3e73b91
commit 878788b1e2
25 changed files with 3227 additions and 21 deletions
+20
View File
@@ -50,6 +50,26 @@ export const StableEngineeringErrorCodeSchema = Type.Union(
);
export const ErrorDetailsSchema = Type.Object(
{
reason: Type.Optional(
Type.Union([
Type.Literal("platform_unsupported"),
Type.Literal("brand_unsupported"),
Type.Literal("version_unsupported"),
Type.Literal("identity_unavailable"),
]),
),
supported_browsers: Type.Optional(
Type.Array(
Type.Object(
{
brand: Type.Union([Type.Literal("Google Chrome"), Type.Literal("Microsoft Edge")]),
major: Type.Integer({ minimum: 1 }),
},
{ additionalProperties: false },
),
{ maxItems: 2 },
),
),
capacity_status: Type.Optional(
Type.Union([
Type.Literal("normal"),