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