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