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