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