/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type CreateCommentForAuditEvidenceRequest = { auditId: string; auditEvidenceId: string; addCommentInput: components.AddCommentInput; }; /** @internal */ export type CreateCommentForAuditEvidenceRequest$Outbound = { auditId: string; auditEvidenceId: string; AddCommentInput: components.AddCommentInput$Outbound; }; /** @internal */ export const CreateCommentForAuditEvidenceRequest$outboundSchema: z.ZodType< CreateCommentForAuditEvidenceRequest$Outbound, z.ZodTypeDef, CreateCommentForAuditEvidenceRequest > = z.object({ auditId: z.string(), auditEvidenceId: z.string(), addCommentInput: components.AddCommentInput$outboundSchema, }).transform((v) => { return remap$(v, { addCommentInput: "AddCommentInput", }); }); export function createCommentForAuditEvidenceRequestToJSON( createCommentForAuditEvidenceRequest: CreateCommentForAuditEvidenceRequest, ): string { return JSON.stringify( CreateCommentForAuditEvidenceRequest$outboundSchema.parse( createCommentForAuditEvidenceRequest, ), ); }