/* * 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 ConsoleV1SegmentsControllerGenReadRequest = { /** * id */ id: string; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; }; /** * Get Segment Success */ export type ConsoleV1SegmentsControllerGenReadResponseBody = { /** * A simple string explaining the result of the operation. */ message: string; data: components.SegmentDto; }; /** @internal */ export const ConsoleV1SegmentsControllerGenReadRequest$inboundSchema: z.ZodType< ConsoleV1SegmentsControllerGenReadRequest, z.ZodTypeDef, unknown > = z .object({ id: z.string(), "x-respect-review-settings": z.string().optional(), }) .transform((v) => { return remap$(v, { "x-respect-review-settings": "xRespectReviewSettings", }); }); /** @internal */ export type ConsoleV1SegmentsControllerGenReadRequest$Outbound = { id: string; "x-respect-review-settings"?: string | undefined; }; /** @internal */ export const ConsoleV1SegmentsControllerGenReadRequest$outboundSchema: z.ZodType< ConsoleV1SegmentsControllerGenReadRequest$Outbound, z.ZodTypeDef, ConsoleV1SegmentsControllerGenReadRequest > = z .object({ id: z.string(), 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 ConsoleV1SegmentsControllerGenReadRequest$ { /** @deprecated use `ConsoleV1SegmentsControllerGenReadRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1SegmentsControllerGenReadRequest$inboundSchema; /** @deprecated use `ConsoleV1SegmentsControllerGenReadRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1SegmentsControllerGenReadRequest$outboundSchema; /** @deprecated use `ConsoleV1SegmentsControllerGenReadRequest$Outbound` instead. */ export type Outbound = ConsoleV1SegmentsControllerGenReadRequest$Outbound; } /** @internal */ export const ConsoleV1SegmentsControllerGenReadResponseBody$inboundSchema: z.ZodType< ConsoleV1SegmentsControllerGenReadResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: components.SegmentDto$inboundSchema, }); /** @internal */ export type ConsoleV1SegmentsControllerGenReadResponseBody$Outbound = { message: string; data: components.SegmentDto$Outbound; }; /** @internal */ export const ConsoleV1SegmentsControllerGenReadResponseBody$outboundSchema: z.ZodType< ConsoleV1SegmentsControllerGenReadResponseBody$Outbound, z.ZodTypeDef, ConsoleV1SegmentsControllerGenReadResponseBody > = z.object({ message: z.string(), data: components.SegmentDto$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1SegmentsControllerGenReadResponseBody$ { /** @deprecated use `ConsoleV1SegmentsControllerGenReadResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1SegmentsControllerGenReadResponseBody$inboundSchema; /** @deprecated use `ConsoleV1SegmentsControllerGenReadResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1SegmentsControllerGenReadResponseBody$outboundSchema; /** @deprecated use `ConsoleV1SegmentsControllerGenReadResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1SegmentsControllerGenReadResponseBody$Outbound; }