/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; import * as z from "zod"; export type ConsoleV1SegmentsIDListControllerReadRequest = { id: string; /** * Results per page */ limit?: any | undefined; /** * Page number */ page?: any | undefined; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; }; /** * IDs read successfully */ export type ConsoleV1SegmentsIDListControllerReadResponseBody = { /** * A simple string explaining the result of the operation. */ message: string; data: Array; /** * Pagination metadata for checking if there is next page for example. */ pagination: components.PaginationResponseMetadataDto; }; /** @internal */ export const ConsoleV1SegmentsIDListControllerReadRequest$inboundSchema: z.ZodType< ConsoleV1SegmentsIDListControllerReadRequest, z.ZodTypeDef, unknown > = z .object({ id: z.string(), limit: z.any().optional(), page: z.any().optional(), "x-respect-review-settings": z.string().optional(), }) .transform((v) => { return remap$(v, { "x-respect-review-settings": "xRespectReviewSettings", }); }); /** @internal */ export type ConsoleV1SegmentsIDListControllerReadRequest$Outbound = { id: string; limit?: any | undefined; page?: any | undefined; "x-respect-review-settings"?: string | undefined; }; /** @internal */ export const ConsoleV1SegmentsIDListControllerReadRequest$outboundSchema: z.ZodType< ConsoleV1SegmentsIDListControllerReadRequest$Outbound, z.ZodTypeDef, ConsoleV1SegmentsIDListControllerReadRequest > = z .object({ id: z.string(), limit: z.any().optional(), page: z.any().optional(), xRespectReviewSettings: z.string().optional(), }) .transform((v) => { return remap$(v, { xRespectReviewSettings: "x-respect-review-settings", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1SegmentsIDListControllerReadRequest$ { /** @deprecated use `ConsoleV1SegmentsIDListControllerReadRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1SegmentsIDListControllerReadRequest$inboundSchema; /** @deprecated use `ConsoleV1SegmentsIDListControllerReadRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1SegmentsIDListControllerReadRequest$outboundSchema; /** @deprecated use `ConsoleV1SegmentsIDListControllerReadRequest$Outbound` instead. */ export type Outbound = ConsoleV1SegmentsIDListControllerReadRequest$Outbound; } /** @internal */ export const ConsoleV1SegmentsIDListControllerReadResponseBody$inboundSchema: z.ZodType< ConsoleV1SegmentsIDListControllerReadResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: z.array(components.IDListDto$inboundSchema), pagination: components.PaginationResponseMetadataDto$inboundSchema, }); /** @internal */ export type ConsoleV1SegmentsIDListControllerReadResponseBody$Outbound = { message: string; data: Array; pagination: components.PaginationResponseMetadataDto$Outbound; }; /** @internal */ export const ConsoleV1SegmentsIDListControllerReadResponseBody$outboundSchema: z.ZodType< ConsoleV1SegmentsIDListControllerReadResponseBody$Outbound, z.ZodTypeDef, ConsoleV1SegmentsIDListControllerReadResponseBody > = z.object({ message: z.string(), data: z.array(components.IDListDto$outboundSchema), pagination: components.PaginationResponseMetadataDto$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1SegmentsIDListControllerReadResponseBody$ { /** @deprecated use `ConsoleV1SegmentsIDListControllerReadResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1SegmentsIDListControllerReadResponseBody$inboundSchema; /** @deprecated use `ConsoleV1SegmentsIDListControllerReadResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1SegmentsIDListControllerReadResponseBody$outboundSchema; /** @deprecated use `ConsoleV1SegmentsIDListControllerReadResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1SegmentsIDListControllerReadResponseBody$Outbound; }