759481b621
Move request and response schemas into matching subdirectories, extract the shared chat lock type, and update barrels and imports without changing wire formats.
19 lines
496 B
TypeScript
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>;
|