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