/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: e2185117c249 */ 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 CompleteCommandResponse = { /** * Whether the command transitioned; false if it was already terminal */ updated: boolean; }; /** @internal */ export const CompleteCommandResponse$inboundSchema: z.ZodType< CompleteCommandResponse, unknown > = z.object({ updated: z.boolean(), }); export function completeCommandResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => CompleteCommandResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompleteCommandResponse' from JSON`, ); }