/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 531848fe1570 */ import * as z from "zod/v3"; /** * describes the interactions on the document */ export type DocumentInteractionsDefinition = { numViews?: number | undefined; numLikes?: number | undefined; numComments?: number | undefined; }; /** @internal */ export type DocumentInteractionsDefinition$Outbound = { numViews?: number | undefined; numLikes?: number | undefined; numComments?: number | undefined; }; /** @internal */ export const DocumentInteractionsDefinition$outboundSchema: z.ZodType< DocumentInteractionsDefinition$Outbound, z.ZodTypeDef, DocumentInteractionsDefinition > = z.object({ numViews: z.number().int().optional(), numLikes: z.number().int().optional(), numComments: z.number().int().optional(), }); export function documentInteractionsDefinitionToJSON( documentInteractionsDefinition: DocumentInteractionsDefinition, ): string { return JSON.stringify( DocumentInteractionsDefinition$outboundSchema.parse( documentInteractionsDefinition, ), ); }