/* * 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 { lazySchema as lazySchema$ } from "../../lib/schemas.js"; import { PassThroughBody, PassThroughBody$Outbound, PassThroughBody$outboundSchema, } from "./passthroughbody.js"; export type CollectionTicketCommentInput = { /** * Body of the comment */ body?: string | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export type CollectionTicketCommentInput$Outbound = { body?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export const CollectionTicketCommentInput$outboundSchema: z.ZodType< CollectionTicketCommentInput$Outbound, z.ZodTypeDef, CollectionTicketCommentInput > = /* @__PURE__ */ lazySchema$(() => z.object({ body: z.nullable(z.string()).optional(), passThrough: z.array(PassThroughBody$outboundSchema).optional(), }).transform((v) => { return remap$(v, { passThrough: "pass_through", }); }) ); export function collectionTicketCommentInputToJSON( collectionTicketCommentInput: CollectionTicketCommentInput, ): string { return JSON.stringify( CollectionTicketCommentInput$outboundSchema.parse( collectionTicketCommentInput, ), ); }