feat: complete TASK-WP0-03 browser gate
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user