UNPKG

@guildxyz/types

Version:

Types related to the Guild.xyz API

10 lines (8 loc) 382 B
/* eslint-disable import/prefer-default-export */ import { z } from "zod"; import { PlatformNameSchema } from "./common"; export const PlatformUserCreationSchema = z.object({ platformName: PlatformNameSchema, authData: z.any(), // TODO: This could be typed easily, as the diffferent OAuth payloads mostly look the same disconnectFromExistingUser: z.boolean().optional(), });