/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; export type CreateProjectRequest = { /** * The project's name. */ name: string; /** * The website or app the project moderates content for. Used to write the context when none is given. */ domain?: string | undefined; /** * What the platform is and who uses it. */ context?: string | undefined; /** * What you moderate, the problems you see and your guidelines. */ brief?: string | undefined; /** * Whether children use the platform. */ usedByMinors?: boolean | undefined; }; /** @internal */ export type CreateProjectRequest$Outbound = { name: string; domain?: string | undefined; context?: string | undefined; brief?: string | undefined; usedByMinors: boolean; }; /** @internal */ export const CreateProjectRequest$outboundSchema: z.ZodMiniType< CreateProjectRequest$Outbound, CreateProjectRequest > = z.object({ name: z.string(), domain: z.optional(z.string()), context: z.optional(z.string()), brief: z.optional(z.string()), usedByMinors: z._default(z.boolean(), false), }); export function createProjectRequestToJSON( createProjectRequest: CreateProjectRequest, ): string { return JSON.stringify( CreateProjectRequest$outboundSchema.parse(createProjectRequest), ); }