/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; export type GetAuthorRequest = { /** * Either external ID or the ID assigned by moderation API. */ id: string; /** * The project to act on, when you call with an organization key. Optional when the organization has one project. A project key acts on its own project: naming another one is an error. */ projectId?: string | undefined; }; /** @internal */ export type GetAuthorRequest$Outbound = { id: string; projectId?: string | undefined; }; /** @internal */ export const GetAuthorRequest$outboundSchema: z.ZodMiniType< GetAuthorRequest$Outbound, GetAuthorRequest > = z.object({ id: z.string(), projectId: z.optional(z.string()), }); export function getAuthorRequestToJSON( getAuthorRequest: GetAuthorRequest, ): string { return JSON.stringify( GetAuthorRequest$outboundSchema.parse(getAuthorRequest), ); }