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