/* * 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 ReplyCallback = { /** * Indicates whether the reply callback is active. */ active?: boolean | undefined; /** * The URL to which replies should be sent. */ url?: string | undefined; }; /** @internal */ export const ReplyCallback$inboundSchema: z.ZodType< ReplyCallback, z.ZodTypeDef, unknown > = z.object({ active: z.boolean().optional(), url: z.string().optional(), }); export function replyCallbackFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ReplyCallback$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ReplyCallback' from JSON`, ); }