/**
 * Facebook 用户数据 schema
 *
 *
 * 字段对齐 Dart 端 `String?` 可空语义：缺字段时存 `null`。
 */
import { z } from "zod";

import { stringOrNull } from "../nullable-defaults";

export const FacebookUserDataSchema = z
  .object({
    id: stringOrNull,
    name: stringOrNull,
    pictureUrl: stringOrNull,
  })
  .readonly();

export type FacebookUserDataInput = z.input<typeof FacebookUserDataSchema>;
export type FacebookUserDataData = z.output<typeof FacebookUserDataSchema>;

export type FacebookUserData = FacebookUserDataData;
