/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 9e8022393b8b */ import * as z from "zod/v3"; /** * describes a user in the datasource */ export type DatasourceUserDefinition = { email: string; /** * To be supplied if the user id in the datasource is not the email */ userId?: string | undefined; name: string; /** * set to false if the user is a former employee or a bot */ isActive?: boolean | undefined; }; /** @internal */ export type DatasourceUserDefinition$Outbound = { email: string; userId?: string | undefined; name: string; isActive?: boolean | undefined; }; /** @internal */ export const DatasourceUserDefinition$outboundSchema: z.ZodType< DatasourceUserDefinition$Outbound, z.ZodTypeDef, DatasourceUserDefinition > = z.object({ email: z.string(), userId: z.string().optional(), name: z.string(), isActive: z.boolean().optional(), }); export function datasourceUserDefinitionToJSON( datasourceUserDefinition: DatasourceUserDefinition, ): string { return JSON.stringify( DatasourceUserDefinition$outboundSchema.parse(datasourceUserDefinition), ); }