/* * 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 "./sdk-validation-error.js"; import { SubscriptionScheduleResponse, SubscriptionScheduleResponse$inboundSchema, } from "./subscription-schedule-response.js"; /** * List of pending schedules for a subscription */ export type GetPendingSchedulesResponse = { /** * count is the number of pending schedules */ count?: number | undefined; /** * schedules is the list of pending schedules */ schedules?: Array | undefined; }; /** @internal */ export const GetPendingSchedulesResponse$inboundSchema: z.ZodMiniType< GetPendingSchedulesResponse, unknown > = z.object({ count: types.optional(types.number()), schedules: types.optional( z.array(SubscriptionScheduleResponse$inboundSchema), ), }); export function getPendingSchedulesResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetPendingSchedulesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPendingSchedulesResponse' from JSON`, ); }