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