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