Skip to content

userSchema

const userSchema: ZodUnion<readonly [ZodObject<{ avatar_url: ZodOptional<ZodUnion<readonly [ZodURL, ZodNull]>>; id: ZodUUID; name: ZodOptional<ZodString>; object: ZodLiteral<"user">; person: ZodObject<{ email: ZodEmail; email_verified: ZodOptional<ZodBoolean>; }, $strip>; type: ZodLiteral<"person">; }, $strip>, ZodObject<{ avatar_url: ZodOptional<ZodUnion<readonly [ZodURL, ZodNull]>>; bot: ZodObject<{ owner: ZodDiscriminatedUnion<[ZodObject<{ type: ZodLiteral<…>; workspace: ZodLiteral<…>; }, $strip>, ZodObject<{ type: ZodLiteral<…>; }, $strip>], "type">; workspace_id: ZodOptional<ZodString>; workspace_limits: ZodOptional<ZodObject<{ max_file_upload_size_in_bytes: ZodInt; }, $strip>>; workspace_name: ZodOptional<ZodNullable<ZodString>>; }, $strip>; id: ZodUUID; name: ZodOptional<ZodString>; object: ZodLiteral<"user">; type: ZodLiteral<"bot">; }, $strip>, ZodObject<{ id: ZodUUID; object: ZodLiteral<"user">; }, $strip>]>

Defined in: src/schemas/user.schema.ts:65