/* * 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"; /** * Represents the result of an ad-hoc sync request. */ export type StartScheduledSyncResult = { /** * The unique identifier for the created sync. */ syncId: string; }; /** @internal */ export const StartScheduledSyncResult$inboundSchema: z.ZodType< StartScheduledSyncResult, z.ZodTypeDef, unknown > = z.object({ syncId: z.string(), }); export function startScheduledSyncResultFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => StartScheduledSyncResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StartScheduledSyncResult' from JSON`, ); }