Files
cozsweet-frontend-nextjs/src/data/schemas/auth/request/facebook_login_request.ts
T
admin 759481b621 refactor(schemas): group network schemas by direction
Move request and response schemas into matching subdirectories, extract the shared chat lock type, and update barrels and imports without changing wire formats.
2026-07-14 15:12:19 +08:00

19 lines
496 B
TypeScript

/**
* Facebook 登录请求
*
*/
import { z } from "zod";
import { booleanOrFalse, stringOrEmpty } from "../../nullable-defaults";
export const FacebookLoginRequestSchema = z.object({
accessToken: z.string(),
platform: z.string(),
guestId: stringOrEmpty,
psid: stringOrEmpty,
isTestAccount: booleanOrFalse,
});
export type FacebookLoginRequestInput = z.input<typeof FacebookLoginRequestSchema>;
export type FacebookLoginRequestData = z.output<typeof FacebookLoginRequestSchema>;