/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 93ee09ef7245 */ 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 AgentSessionApproveResponse = { jobId: string; status: string; resumed: boolean; }; /** @internal */ export const AgentSessionApproveResponse$inboundSchema: z.ZodType< AgentSessionApproveResponse, unknown > = z.object({ jobId: z.string(), status: z.string(), resumed: z.boolean(), }); export function agentSessionApproveResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AgentSessionApproveResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentSessionApproveResponse' from JSON`, ); }