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