/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type MetaDto = { /** * The total count of subscriber IDs provided */ totalCount: number; /** * The count of successfully created subscriptions */ successful: number; /** * The count of failed subscription attempts */ failed: number; }; /** @internal */ export const MetaDto$inboundSchema: z.ZodType = z.object({ totalCount: z.number(), successful: z.number(), failed: z.number(), }); export function metaDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => MetaDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MetaDto' from JSON`, ); }