/* * 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"; export type MemoryScheduleStatus = { scheduleId: string; paused: boolean; lastRunAt?: number | undefined; nextRunAt?: number | undefined; note?: string | undefined; }; /** @internal */ export const MemoryScheduleStatus$inboundSchema: z.ZodMiniType< MemoryScheduleStatus, unknown > = z.object({ scheduleId: types.string(), paused: types.boolean(), lastRunAt: types.optional(types.number()), nextRunAt: types.optional(types.number()), note: types.optional(types.string()), }); export function memoryScheduleStatusFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => MemoryScheduleStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MemoryScheduleStatus' from JSON`, ); }