/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import * as types from "../types/primitives.js"; import { SDKValidationError } from "./errors/sdk-validation-error.js"; import { SessionMemory, SessionMemory$inboundSchema, } from "./session-memory.js"; export type WorkingSessionUpdateResponse = { success: boolean; session: SessionMemory; }; /** @internal */ export const WorkingSessionUpdateResponse$inboundSchema: z.ZodMiniType< WorkingSessionUpdateResponse, unknown > = z.object({ success: types.boolean(), session: SessionMemory$inboundSchema, }); export function workingSessionUpdateResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => WorkingSessionUpdateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkingSessionUpdateResponse' from JSON`, ); }