/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { remap as remap$ } from "../../lib/primitives.js"; export type ListAllSubscriptionSchedulesRequest = { /** * Filter to pending schedules only */ pendingOnly?: boolean | undefined; /** * Filter by subscription ID */ subscriptionId?: string | undefined; /** * Limit results */ limit?: number | undefined; /** * Offset for pagination */ offset?: number | undefined; }; /** @internal */ export type ListAllSubscriptionSchedulesRequest$Outbound = { pending_only?: boolean | undefined; subscription_id?: string | undefined; limit?: number | undefined; offset?: number | undefined; }; /** @internal */ export const ListAllSubscriptionSchedulesRequest$outboundSchema: z.ZodMiniType< ListAllSubscriptionSchedulesRequest$Outbound, ListAllSubscriptionSchedulesRequest > = z.pipe( z.object({ pendingOnly: z.optional(z.boolean()), subscriptionId: z.optional(z.string()), limit: z.optional(z.int()), offset: z.optional(z.int()), }), z.transform((v) => { return remap$(v, { pendingOnly: "pending_only", subscriptionId: "subscription_id", }); }), ); export function listAllSubscriptionSchedulesRequestToJSON( listAllSubscriptionSchedulesRequest: ListAllSubscriptionSchedulesRequest, ): string { return JSON.stringify( ListAllSubscriptionSchedulesRequest$outboundSchema.parse( listAllSubscriptionSchedulesRequest, ), ); }