/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 523e93f92901 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type DispatchCommandResponse = { /** * Whether the command transitioned; false if it was already terminal */ updated: boolean; }; /** @internal */ export const DispatchCommandResponse$inboundSchema: z.ZodType< DispatchCommandResponse, unknown > = z.object({ updated: z.boolean(), }); export function dispatchCommandResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DispatchCommandResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DispatchCommandResponse' from JSON`, ); }