UNPKG

fathom-typescript

Version:

Fathom's official TypeScript SDK.

43 lines (38 loc) 1.13 kB
/* * 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 { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type MeetingSummary = { templateName: string | null; /** * Always displayed in English. */ markdownFormatted: string | null; }; /** @internal */ export const MeetingSummary$inboundSchema: z.ZodType< MeetingSummary, z.ZodTypeDef, unknown > = z.object({ template_name: z.nullable(z.string()), markdown_formatted: z.nullable(z.string()), }).transform((v) => { return remap$(v, { "template_name": "templateName", "markdown_formatted": "markdownFormatted", }); }); export function meetingSummaryFromJSON( jsonString: string, ): SafeParseResult<MeetingSummary, SDKValidationError> { return safeParse( jsonString, (x) => MeetingSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MeetingSummary' from JSON`, ); }