/* * 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 ConsoleV1DynamicConfigControllerGenReadRuleRequest = { /** * Dynamic Config ID */ id: string; /** * Rule ID */ ruleId: string; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; }; /** * Get Specific Dynamic Config Rule Response */ export type ConsoleV1DynamicConfigControllerGenReadRuleResponseBody = { /** * A simple string explaining the result of the operation. */ message: string; data: components.DynamicConfigDto; }; /** @internal */ export const ConsoleV1DynamicConfigControllerGenReadRuleRequest$inboundSchema: z.ZodType< ConsoleV1DynamicConfigControllerGenReadRuleRequest, z.ZodTypeDef, unknown > = z .object({ id: z.string(), ruleId: z.string(), "x-respect-review-settings": z.string().optional(), }) .transform((v) => { return remap$(v, { "x-respect-review-settings": "xRespectReviewSettings", }); }); /** @internal */ export type ConsoleV1DynamicConfigControllerGenReadRuleRequest$Outbound = { id: string; ruleId: string; "x-respect-review-settings"?: string | undefined; }; /** @internal */ export const ConsoleV1DynamicConfigControllerGenReadRuleRequest$outboundSchema: z.ZodType< ConsoleV1DynamicConfigControllerGenReadRuleRequest$Outbound, z.ZodTypeDef, ConsoleV1DynamicConfigControllerGenReadRuleRequest > = z .object({ id: z.string(), ruleId: 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 ConsoleV1DynamicConfigControllerGenReadRuleRequest$ { /** @deprecated use `ConsoleV1DynamicConfigControllerGenReadRuleRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1DynamicConfigControllerGenReadRuleRequest$inboundSchema; /** @deprecated use `ConsoleV1DynamicConfigControllerGenReadRuleRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1DynamicConfigControllerGenReadRuleRequest$outboundSchema; /** @deprecated use `ConsoleV1DynamicConfigControllerGenReadRuleRequest$Outbound` instead. */ export type Outbound = ConsoleV1DynamicConfigControllerGenReadRuleRequest$Outbound; } /** @internal */ export const ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$inboundSchema: z.ZodType< ConsoleV1DynamicConfigControllerGenReadRuleResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: components.DynamicConfigDto$inboundSchema, }); /** @internal */ export type ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$Outbound = { message: string; data: components.DynamicConfigDto$Outbound; }; /** @internal */ export const ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$outboundSchema: z.ZodType< ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$Outbound, z.ZodTypeDef, ConsoleV1DynamicConfigControllerGenReadRuleResponseBody > = 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 ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$ { /** @deprecated use `ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$inboundSchema; /** @deprecated use `ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$outboundSchema; /** @deprecated use `ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1DynamicConfigControllerGenReadRuleResponseBody$Outbound; }