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