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