/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { AfterPaginationMetaResultV2, AfterPaginationMetaResultV2$inboundSchema, AfterPaginationMetaResultV2$Outbound, AfterPaginationMetaResultV2$outboundSchema, } from "./afterpaginationmetaresultv2.js"; import { ScheduleEntriesListPayloadV2, ScheduleEntriesListPayloadV2$inboundSchema, ScheduleEntriesListPayloadV2$Outbound, ScheduleEntriesListPayloadV2$outboundSchema, } from "./scheduleentrieslistpayloadv2.js"; export type ListScheduleEntriesResponseBody = { paginationMeta?: AfterPaginationMetaResultV2 | undefined; scheduleEntries: ScheduleEntriesListPayloadV2; }; /** @internal */ export const ListScheduleEntriesResponseBody$inboundSchema: z.ZodType< ListScheduleEntriesResponseBody, z.ZodTypeDef, unknown > = z.object({ pagination_meta: AfterPaginationMetaResultV2$inboundSchema.optional(), schedule_entries: ScheduleEntriesListPayloadV2$inboundSchema, }).transform((v) => { return remap$(v, { "pagination_meta": "paginationMeta", "schedule_entries": "scheduleEntries", }); }); /** @internal */ export type ListScheduleEntriesResponseBody$Outbound = { pagination_meta?: AfterPaginationMetaResultV2$Outbound | undefined; schedule_entries: ScheduleEntriesListPayloadV2$Outbound; }; /** @internal */ export const ListScheduleEntriesResponseBody$outboundSchema: z.ZodType< ListScheduleEntriesResponseBody$Outbound, z.ZodTypeDef, ListScheduleEntriesResponseBody > = z.object({ paginationMeta: AfterPaginationMetaResultV2$outboundSchema.optional(), scheduleEntries: ScheduleEntriesListPayloadV2$outboundSchema, }).transform((v) => { return remap$(v, { paginationMeta: "pagination_meta", scheduleEntries: "schedule_entries", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ListScheduleEntriesResponseBody$ { /** @deprecated use `ListScheduleEntriesResponseBody$inboundSchema` instead. */ export const inboundSchema = ListScheduleEntriesResponseBody$inboundSchema; /** @deprecated use `ListScheduleEntriesResponseBody$outboundSchema` instead. */ export const outboundSchema = ListScheduleEntriesResponseBody$outboundSchema; /** @deprecated use `ListScheduleEntriesResponseBody$Outbound` instead. */ export type Outbound = ListScheduleEntriesResponseBody$Outbound; }